Skip to content

Commit

Permalink
Consider email_address_verified flag instead of enabled flag on p…
Browse files Browse the repository at this point in the history
…assword reset request
  • Loading branch information
homeworkprod committed Sep 23, 2019
1 parent ae842e8 commit 3098f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion byceps/blueprints/authentication/views.py
Expand Up @@ -221,7 +221,7 @@ def request_password_reset():
flash_error('Der Benutzername "{}" ist unbekannt.', screen_name)
return request_password_reset_form(form)

if not user.enabled:
if not user.email_address_verified:
flash_error('Die E-Mail-Adresse für das Benutzerkonto "{}" wurde '
'noch nicht bestätigt.', screen_name)
return redirect_to('user_email_address.request_confirmation_email')
Expand Down

0 comments on commit 3098f03

Please sign in to comment.