Fix an error with email confirmation links. NOTE: you CAN NOT use 'is True' in place of '== True' with peewee.
This commit is contained in:
parent
12e91022cc
commit
986642218b
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ def create_confirm_email_code(user):
|
|||
|
||||
def confirm_user_email(code):
|
||||
code = EmailConfirmation.get(EmailConfirmation.code == code,
|
||||
EmailConfirmation.email_confirm is True)
|
||||
EmailConfirmation.email_confirm == True)
|
||||
|
||||
user = code.user
|
||||
user.verified = True
|
||||
|
|
Reference in a new issue