Skip to content
This repository was archived by the owner on Jun 7, 2025. It is now read-only.

Commit 4b97c0f

Browse files
authored
Update user.py
1 parent 8f93e9a commit 4b97c0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/routes/user.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ async def update_user(
170170
* **HTTPException.HTTP_500_INTERNAL_SERVER_ERROR**: Se si verifica un errore durante l'aggiornamento dell'utente.
171171
* **HTTPException.HTTP_304_NOT_MODIFIED**: Se i dati forniti corrispondono a quelli esistenti.
172172
"""
173-
# Verifica che l'admin esista e che la password sia corretta
173+
user_new_data.password = None
174+
# Verifica che l'admin esista e che la password sia corretta
174175
valid_user = await authenticate_user(
175176
current_user.get("sub"), user_new_data.admin_password, user_repo
176177
)

0 commit comments

Comments
 (0)