fix cookies
This commit is contained in:
parent
836f294ef6
commit
e380ae25cb
2
app.py
2
app.py
@ -48,6 +48,7 @@ def require_secret(f):
|
||||
if is_valid(secret_data):
|
||||
# Valid secret provided in URL: update session and config
|
||||
session['secret'] = get_secret
|
||||
session.permanent = True
|
||||
app.config['FILE_ROOT'] = secret_data.get('file_root')
|
||||
return f(*args, **kwargs)
|
||||
else:
|
||||
@ -60,6 +61,7 @@ def require_secret(f):
|
||||
secret_data = allowed_secrets.get(session_secret)
|
||||
if secret_data:
|
||||
if is_valid(secret_data):
|
||||
session.permanent = True
|
||||
app.config['FILE_ROOT'] = secret_data.get('file_root')
|
||||
return f(*args, **kwargs)
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user