Skip to content
Snippets Groups Projects
Commit 865ffa2e authored by root's avatar root
Browse files

Update to only use eppa if it's provided in the headers

parent 9bd7d0e6
No related branches found
No related tags found
1 merge request!60Update to only use eppa if it's provided in the headers
......@@ -71,11 +71,12 @@ def create_app(config_name):
"redir", app_vars.default_referrer
)
if not any(item in session["user"].get("eppa") for item in valid_eppa):
return render_template(
"account/unauthorized.html",
unauthorized_msg=messages.unauthorized_message,
)
if 'eppa' in request.headers:
if not any(item in session["user"].get("eppa") for item in valid_eppa):
return render_template(
"account/unauthorized.html",
unauthorized_msg=messages.unauthorized_message,
)
if rc_util.check_state(session["user"].get("username")) == "hold":
return render_template(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment