Skip to content

Commit c6ff107

Browse files
authored
♻️Refactor for clean import statements
1 parent 3aad3fb commit c6ff107

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
@@ -9,7 +9,6 @@
99
from app.api.deps import CurrentUser, SessionDep, get_current_active_superuser
1010
from app.core import security
1111
from app.core.config import settings
12-
from app.core.security import get_password_hash
1312
from app.models import Message, NewPassword, Token, UserPublic
1413
from app.utils import (
1514
generate_password_reset_token,
@@ -91,7 +90,7 @@ def reset_password(session: SessionDep, body: NewPassword) -> Message:
9190
)
9291
elif not user.is_active:
9392
raise HTTPException(status_code=400, detail="Inactive user")
94-
hashed_password = get_password_hash(password=body.new_password)
93+
hashed_password = security.get_password_hash(password=body.new_password)
9594
user.hashed_password = hashed_password
9695
session.add(user)
9796
session.commit()

0 commit comments

Comments
 (0)