MCPcopy
hub / github.com/pyload/pyload / login_post

Function login_post

module/web/pyload_app.py:219–229  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217
218@route("/login", method="POST")
219def 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")

Callers

nothing calls this directly

Calls 5

render_to_responseFunction · 0.90
set_sessionFunction · 0.90
redirectFunction · 0.90
getMethod · 0.45
checkAuthMethod · 0.45

Tested by

no test coverage detected