Skip to content

Commit 3cda470

Browse files
authored
wtf did I write
1 parent b863854 commit 3cda470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/core/users/endpoints_users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ async def reset_password(
645645

646646
user = await cruds_users.get_user_by_id(db=db, user_id=recover_request.user_id)
647647
if user is None:
648-
raise HTTPException("Invalid user ID")
648+
raise HTTPException(status_code=404, detail="Invalid user ID")
649649
if user.should_change_password:
650650
# we control whether we check if the new password is different
651651
if security.verify_password(

0 commit comments

Comments
 (0)