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 f936785 commit b863854Copy full SHA for b863854
app/core/users/endpoints_users.py
@@ -644,6 +644,8 @@ async def reset_password(
644
)
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")
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