redirect / to /selfservice if user is logged in already
This commit is contained in:
parent
4ed04fafdd
commit
c08a24b9f3
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,8 @@ with open(environ["APP_CONFIG"]) as f:
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def slash():
|
def slash():
|
||||||
|
if session.get('is_logged_in'):
|
||||||
|
return redirect(url_for("selfservice"))
|
||||||
return redirect(url_for("login"))
|
return redirect(url_for("login"))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue