parent
9c417b0325
commit
31592dc7f1
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue