Merge pull request #24947 from ankush/chore/remove_patch
fix: remove patch for hashing existing tokens
This commit is contained in:
commit
e306e01660
3 changed files with 0 additions and 17 deletions
|
|
@ -1,16 +0,0 @@
|
|||
import frappe
|
||||
from frappe.utils.data import sha256_hash
|
||||
|
||||
|
||||
def execute():
|
||||
"""hash reset password tokens"""
|
||||
|
||||
users = frappe.get_all("User", {"reset_password_key": ("is", "set")}, ["name", "reset_password_key"])
|
||||
for user in users:
|
||||
frappe.db.set_value(
|
||||
"User",
|
||||
user.name,
|
||||
"reset_password_key",
|
||||
sha256_hash(user.reset_password_key),
|
||||
update_modified=False,
|
||||
)
|
||||
|
|
@ -234,4 +234,3 @@ frappe.core.doctype.data_import.patches.remove_stale_docfields_from_legacy_versi
|
|||
frappe.patches.v15_0.validate_newsletter_recipients
|
||||
frappe.patches.v15_0.sanitize_workspace_titles
|
||||
frappe.patches.v15_0.migrate_role_profile_to_table_multi_select
|
||||
frappe.core.doctype.user.patches.hash_reset_password_tokens
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue