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 ffb3d80 commit 12d92c5Copy full SHA for 12d92c5
backend/app/api/routes/login.py
@@ -87,7 +87,7 @@ def reset_password(session: SessionDep, body: NewPassword) -> Message:
87
raise HTTPException(
88
status_code=404, detail="The user with this email does not exist."
89
)
90
- if not user.is_active:
+ elif not user.is_active:
91
raise HTTPException(status_code=400, detail="Inactive user")
92
user_in_update = UserUpdate(password=body.new_password)
93
crud.update_user(
0 commit comments