Merge pull request #24947 from ankush/chore/remove_patch

fix: remove patch for hashing existing tokens
This commit is contained in:
Ankush Menat 2024-02-19 18:44:39 +05:30 committed by GitHub
commit e306e01660
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 17 deletions

View file

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

View file

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