# this is for password hashing and dehashing

comment
pull/2/head
ahmed.mujtaba 2026-08-04 18:22:58 +05:00
parent 9c417b0325
commit 31592dc7f1
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ class User:
user=await Users.get_user_by_id(self.session,record_id)
if not user:
raise HTTPException(status_code=404,detail="User not found")
# this is for password hashing and dehashing
fields=clean_user_payload(payload,partial=True)
email=fields.get("email")
if email and email!=user.email: