Commit 7abe7cb5 authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

fixed naming convention for messages

parent bcc5650f
Pipeline #6114 failed with stage
......@@ -48,17 +48,17 @@ 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('account/unauthorized.html', unauthorized_message=messages.unauthorized_message)
return render_template('account/unauthorized.html', unauthorized_msg=messages.unauthorized_message)
if rc_util.check_state(session['user'].get('username')) == "blocked":
return render_template('account/blocked.html', unauthorized_message=messages.unauthorized_message)
return render_template('account/blocked.html', unauthorized_msg=messages.unauthorized_message)
elif rc_util.check_state(session['user'].get('username')) == "certification":
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,
cancel_msg=messages.cancel_message, certification_message=messages.certification_message)
cancel_msg=messages.cancel_message, certification_msg=messages.certification_message)
else:
return render_template('auth/SignUp.html', room_id=session['uid'],
username=session['user'].get('username'),
......
......@@ -53,7 +53,7 @@
<div class="col-md-10 col-sm-10 my-col">
<div id="form-wrapper">
<h2> Account blocked </h2>
<p style="font-size:110%;"> {{ unauthorized_message |safe }}</p>
<p style="font-size:110%;"> {{ unauthorized_msg |safe }}</p>
</div>
</div>
</div>
......
......@@ -80,7 +80,7 @@
<div class="col-md-10 col-sm-10 my-col">
<div id="form-wrapper">
<h2> Annual Recertification Form </h2>
<p style="font-size:110%;"> {{ certification_message |safe }}</p>
<p style="font-size:110%;"> {{ certification_msg |safe }}</p>
<div id="user-input">
<form id="signup" data-toggle="validator" role="form" action="." method="post" onsubmit="">
<div class="col-md-7 col-sm-7 my-col">
......
......@@ -53,7 +53,7 @@
<div class="col-md-10 col-sm-10 my-col">
<div id="form-wrapper">
<h2> Account Authorization error </h2>
<p style="font-size:110%;"> {{ unauthorized_message |safe }}</p>
<p style="font-size:110%;"> {{ unauthorized_msg |safe }}</p>
</div>
</div>
</div>
......
Markdown is supported
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