mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Better flash message for users with active accounts who click on
verification link again.
This commit is contained in:
@@ -61,7 +61,7 @@ def verify_email(token):
|
||||
abort(404)
|
||||
|
||||
if user.is_active():
|
||||
flash("You have already verified your email address.")
|
||||
flash("That verification link has expired.")
|
||||
return redirect(url_for('main.sign_in'))
|
||||
|
||||
session['user_details'] = {"email": user.email_address, "id": user.id}
|
||||
|
||||
Reference in New Issue
Block a user