From cd777d2bc1a6f3465523130d586d151370b07ee5 Mon Sep 17 00:00:00 2001 From: mguschin Date: Sun, 24 May 2026 17:43:05 +0300 Subject: [PATCH] fix: always update password on re-registration in /user/create When Evotor sends a new /user/create for an existing userId, the new password should replace the old one so /user/verify stays in sync. Co-Authored-By: Claude Sonnet 4.6 --- web/routes/evotor_webhooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/routes/evotor_webhooks.py b/web/routes/evotor_webhooks.py index cec6d13..e05472e 100644 --- a/web/routes/evotor_webhooks.py +++ b/web/routes/evotor_webhooks.py @@ -141,7 +141,7 @@ async def user_create(request: Request, db: Session = Depends(get_db)): user.last_name = last_name if middle_name: user.middle_name = middle_name - if password and not user.password_hash: + if password: user.password_hash = hash_password(password) if user.status == UserStatusEnum.pending: user.status = UserStatusEnum.active