Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ Simplify reset password logic by removing duplicate code #1440

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
lint: fix formatting
  • Loading branch information
youneshenniwrites committed Dec 3, 2024
commit 29517571f480b9d053b6461453be6ecb7f1a316d
2 changes: 1 addition & 1 deletion backend/app/api/routes/login.py
Original file line number Diff line number Diff line change
@@ -86,7 +86,7 @@ def reset_password(session: SessionDep, body: NewPassword) -> Message:
if not user:
raise HTTPException(
status_code=404,
detail="The user with this email does not exist in the system."
detail="The user with this email does not exist in the system.",
)
elif not user.is_active:
raise HTTPException(status_code=400, detail="Inactive user")
Loading
Oops, something went wrong.