Commit f85b5335 authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

edited render template path for certify, blocked and unauthorized pages

parent 0855bfbb
Pipeline #5932 failed with stage
......@@ -51,13 +51,13 @@ def create_app(config_name):
session['return_url'] = request.args.get('redir', vars.default_referrer)
if (not any(item in session['user'].get('eppa') for item in valid_eppa)):
return render_template('errors/shibboleth.html')
return render_template('account/unauthorized.html')
if rc_util.check_state(session['user'].get('username')) == "blocked":
return render_template('errors/blocked.html')
return render_template('account/blocked.html')
elif rc_util.check_state(session['user'].get('username')) == "certification":
return render_template('errors/certify.html', room_id=session['uid'],
return render_template('account/certify.html', room_id=session['uid'],
username=session['user'].get('username'),
fullname=session['user'].get('fullname'), email=session['user'].get('email'),
referrer=session['return_url'], cancel_url=vars.default_referrer,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment