Fixed change password template/form.

This commit is contained in:
Lance Edgar 2013-09-10 20:37:19 -07:00
parent 6b5ca78a83
commit 857a4b88e5
2 changed files with 16 additions and 1 deletions

View file

@ -97,7 +97,7 @@ class CurrentPasswordCorrect(formencode.validators.FancyValidator):
def _to_python(self, value, state):
user = state
if not authenticate_user(user.username, value, session=Session()):
if not authenticate_user(Session, user.username, value):
raise formencode.Invalid("The password is incorrect.", value, state)
return value