redirect / to /selfservice if user is logged in already

This commit is contained in:
Franzi 2021-12-21 10:58:36 +01:00
parent 4ed04fafdd
commit c08a24b9f3
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -24,6 +24,8 @@ with open(environ["APP_CONFIG"]) as f:
@app.route("/")
def slash():
if session.get('is_logged_in'):
return redirect(url_for("selfservice"))
return redirect(url_for("login"))