mirror of
https://github.com/wassname/flask-security.git
synced 2026-08-18 12:00:35 +08:00
Show an invalid confirmation token message if a user attempts to confirm their account after it has been deleted. Fixes #93
This commit is contained in:
@@ -209,7 +209,8 @@ def confirm_email(token):
|
||||
|
||||
expired, invalid, user = confirm_email_token_status(token)
|
||||
|
||||
if invalid:
|
||||
if not user or invalid:
|
||||
invalid = True
|
||||
do_flash(*get_message('INVALID_CONFIRMATION_TOKEN'))
|
||||
if expired:
|
||||
send_confirmation_instructions(user)
|
||||
|
||||
Reference in New Issue
Block a user