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:
yackob03 2013-10-08 17:07:36 -04:00
parent 12e91022cc
commit 986642218b

View file

@ -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