Skip to content

Commit

Permalink
Fixed null user issue in confirm_email()
Browse files Browse the repository at this point in the history
  • Loading branch information
lingthio committed Oct 7, 2014
1 parent fa2d415 commit 44f7b39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flask_user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def confirm_email(token):
else:
user_email = None
user = user_manager.get_user_by_id(object_id)
user.confirmed_at = datetime.utcnow()
if user:
user.confirmed_at = datetime.utcnow()

if user:
user.active = True
Expand Down

0 comments on commit 44f7b39

Please sign in to comment.