Skip to content

Commit 12d92c5

Browse files
chore: refactor if statement
1 parent ffb3d80 commit 12d92c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app/api/routes/login.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def reset_password(session: SessionDep, body: NewPassword) -> Message:
8787
raise HTTPException(
8888
status_code=404, detail="The user with this email does not exist."
8989
)
90-
if not user.is_active:
90+
elif not user.is_active:
9191
raise HTTPException(status_code=400, detail="Inactive user")
9292
user_in_update = UserUpdate(password=body.new_password)
9393
crud.update_user(

0 commit comments

Comments
 (0)