Fixed change password template/form.
This commit is contained in:
parent
6b5ca78a83
commit
857a4b88e5
2 changed files with 16 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue