update password automatically

This commit is contained in:
Christophe Simonis
2013-01-08 00:49:20 +01:00
parent a1c007599f
commit d0497fc886
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ class LoginForm(Form, NextFormMixin):
if self.user is None:
self.email.errors.append('Specified user does not exist')
return False
if not verify_password(self.password.data, self.user.password):
if not verify_password(self.password.data, self.user):
self.password.errors.append('Invalid password')
return False
if requires_confirmation(self.user):