We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b863854 commit 3cda470Copy full SHA for 3cda470
app/core/users/endpoints_users.py
@@ -645,7 +645,7 @@ async def reset_password(
645
646
user = await cruds_users.get_user_by_id(db=db, user_id=recover_request.user_id)
647
if user is None:
648
- raise HTTPException("Invalid user ID")
+ raise HTTPException(status_code=404, detail="Invalid user ID")
649
if user.should_change_password:
650
# we control whether we check if the new password is different
651
if security.verify_password(
0 commit comments