Turn on redirects for email_not_received

This is part of the work to make sure user is redirected
to the page they initially were meant to visit after
they sign in.
This commit is contained in:
Pea Tyczynska
2020-10-09 11:40:04 +01:00
parent 1dd8b08042
commit b0db60e417
3 changed files with 28 additions and 2 deletions

View File

@@ -49,7 +49,8 @@ def check_and_resend_verification_code():
@main.route('/email-not-received', methods=['GET'])
@redirect_to_sign_in
def email_not_received():
return render_template('views/email-not-received.html')
redirect_url = request.args.get('next')
return render_template('views/email-not-received.html', redirect_url=redirect_url)
@main.route('/send-new-email-token', methods=['GET'])