bb
This commit is contained in:
parent
094a1537fe
commit
e1457d558e
5 changed files with 6 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue