Skip to content

Commit

Permalink
lint: add missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
youneshenniwrites committed Dec 3, 2024
1 parent cbd9139 commit a727274
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/app/api/routes/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from app.core import security
from app.core.config import settings
from app.core.security import get_password_hash
from app.models import Message, NewPassword, Token, UserPublic
from app.models import Message, NewPassword, Token, UserPublic, UserUpdate
from app.utils import (
generate_password_reset_token,
generate_reset_password_email,
Expand Down Expand Up @@ -90,7 +90,6 @@ def reset_password(session: SessionDep, body: NewPassword) -> Message:
)
if not user.is_active:
raise HTTPException(status_code=400, detail="Inactive user")

user_in_update = UserUpdate(password=body.new_password)
crud.update_user(
session=session,
Expand Down

0 comments on commit a727274

Please sign in to comment.