Skip to content

Commit

Permalink
fixed hash
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTraveylan committed Aug 28, 2024
1 parent 8e8a2fc commit a2b4d07
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions app/emailmanager/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,8 @@ def reset_password(
if user_id is None:
raise UnauthorizedException("Token de réinitialisation invalide ou expiré")

user_info = USER_INFORMATION_SERVICE.get_or_none(session, user_id=user_id)
if user_info is None:
raise UnauthorizedException("Utilisateur non trouvé")

USER_INFORMATION_SERVICE.update(
USER_SERVICE.update(
session,
user_info.id,
encrypted_password=payload.new_password,
user_id,
hashed_password=payload.new_password,
)

0 comments on commit a2b4d07

Please sign in to comment.