This commit is contained in:
Aevann1 2022-01-09 23:06:21 +02:00
parent 094a1537fe
commit e1457d558e
5 changed files with 6 additions and 22 deletions

View file

@ -123,9 +123,6 @@ def notifications(v):
@auth_desired
def front_all(v):
session.permanent = True
if not session.get("session_id"): session["session_id"] = secrets.token_hex(49)
if not v and request.path == "/" and not request.headers.get("Authorization"): return redirect(f"/logged_out{request.full_path}")
if v and request.path.startswith('/logged_out'): v = None