fix: passwords are updated on every login (#19594)
Co-authored-by: aberrachiche <aberrachiche@aas.com.sa>
This commit is contained in:
parent
701415142b
commit
bfaadfd32d
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ def check_password(user, pwd, doctype="User", fieldname="password", delete_track
|
|||
if delete_tracker_cache:
|
||||
delete_login_failed_cache(user)
|
||||
|
||||
if not passlibctx.needs_update(result[0].password):
|
||||
if passlibctx.needs_update(result[0].password):
|
||||
update_password(user, pwd, doctype, fieldname)
|
||||
|
||||
return user
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue