()
| 217 | |
| 218 | @route("/login", method="POST") |
| 219 | def login_post(): |
| 220 | user = request.forms.get("username") |
| 221 | password = request.forms.get("password") |
| 222 | |
| 223 | info = PYLOAD.checkAuth(user, password) |
| 224 | |
| 225 | if not info: |
| 226 | return render_to_response("login.html", {"errors": True}, [pre_processor]) |
| 227 | |
| 228 | set_session(request, info) |
| 229 | return redirect(PREFIX + "/") |
| 230 | |
| 231 | |
| 232 | @route("/logout") |
nothing calls this directly
no test coverage detected