Skip to content

Commit a727274

Browse files
lint: add missing import
1 parent cbd9139 commit a727274

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backend/app/api/routes/login.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from app.core import security
1111
from app.core.config import settings
1212
from app.core.security import get_password_hash
13-
from app.models import Message, NewPassword, Token, UserPublic
13+
from app.models import Message, NewPassword, Token, UserPublic, UserUpdate
1414
from app.utils import (
1515
generate_password_reset_token,
1616
generate_reset_password_email,
@@ -90,7 +90,6 @@ def reset_password(session: SessionDep, body: NewPassword) -> Message:
9090
)
9191
if not user.is_active:
9292
raise HTTPException(status_code=400, detail="Inactive user")
93-
9493
user_in_update = UserUpdate(password=body.new_password)
9594
crud.update_user(
9695
session=session,

0 commit comments

Comments
 (0)