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:
Matt Wright
2013-03-13 12:27:26 -04:00
parent 34aa43ead3
commit 520b8ecef4
2 changed files with 23 additions and 3 deletions
+2 -1
View File
@@ -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)