diff --git a/files/routes/wrappers.py b/files/routes/wrappers.py index 6c27e0128..095c9151e 100644 --- a/files/routes/wrappers.py +++ b/files/routes/wrappers.py @@ -28,7 +28,7 @@ def get_ID(): def get_logged_in_user(): if hasattr(g, 'v') and g.v: return g.v - if hasattr(g, 'nonce'): + if not hasattr(g, 'nonce'): g.nonce = secrets.token_urlsafe(31) g.desires_auth = True