Fix issue where exception thrown when user does not activate email but successfully completes forgotten-password flow (which includes 2f)

This commit is contained in:
Imdad Ahad
2016-09-08 16:57:06 +01:00
parent d46bfaba14
commit 65072e41d3
3 changed files with 5 additions and 2 deletions

View File

@@ -28,7 +28,6 @@ from app.main.forms import LoginForm
@main.route('/sign-in', methods=(['GET', 'POST']))
def sign_in():
if current_user and current_user.is_authenticated:
return redirect(url_for('main.choose_service'))