If new sms requested, then check and send redirected to two factor

in all cases but should have redirected to verify for pending users.
This commit is contained in:
Adam Shimali
2016-03-21 12:32:07 +00:00
parent 18633af83c
commit c2c98248a1
4 changed files with 29 additions and 6 deletions

View File

@@ -17,6 +17,7 @@ from app.main.forms import TwoFactorForm
@main.route('/two-factor', methods=['GET', 'POST'])
def two_factor():
# TODO handle user_email not in session
try:
user_id = session['user_details']['id']
except KeyError: