chore: don't delete keys that aren't used

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2024-01-31 18:12:15 +05:30
parent aa38d9e2f4
commit 762290db9a
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -12,7 +12,6 @@ from frappe.utils import cstr, encode
Auth = Table("__Auth")
passlibctx = CryptContext(
schemes=[
"pbkdf2_sha256",
@ -104,9 +103,7 @@ def check_password(user, pwd, doctype="User", fieldname="password", delete_track
def delete_login_failed_cache(user):
frappe.cache.hdel("last_login_tried", user)
frappe.cache.hdel("login_failed_count", user)
frappe.cache.hdel("locked_account_time", user)
def update_password(user, pwd, doctype="User", fieldname="password", logout_all_sessions=False):