Skip to content
Snippets Groups Projects

changed state hold back to original state- blocked

Closed Krish Moodbidri requested to merge krish94/self-reg-form:fix-account-hold-state into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -50,7 +50,7 @@ def create_app(config_name):
@@ -50,7 +50,7 @@ def create_app(config_name):
if (not any(item in session['user'].get('eppa') for item in valid_eppa)):
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)
return render_template('account/unauthorized.html', unauthorized_msg=messages.unauthorized_message)
if rc_util.check_state(session['user'].get('username')) == "hold":
if rc_util.check_state(session['user'].get('username')) == "blocked":
return render_template('account/hold.html', account_hold_msg=messages.account_hold_message)
return render_template('account/hold.html', account_hold_msg=messages.account_hold_message)
elif rc_util.check_state(session['user'].get('username')) == "certification":
elif rc_util.check_state(session['user'].get('username')) == "certification":
Loading