fix: passwords are updated on every login (#19594)

Co-authored-by: aberrachiche <aberrachiche@aas.com.sa>
This commit is contained in:
aissa-berrachiche 2023-01-16 08:36:05 +03:00 committed by GitHub
parent 701415142b
commit bfaadfd32d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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