diff --git a/backend/app/api/routes/login.py b/backend/app/api/routes/login.py index fe7e94d5c1..d9e99065cc 100644 --- a/backend/app/api/routes/login.py +++ b/backend/app/api/routes/login.py @@ -9,7 +9,6 @@ from app.api.deps import CurrentUser, SessionDep, get_current_active_superuser 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.utils import ( generate_password_reset_token, @@ -91,7 +90,7 @@ def reset_password(session: SessionDep, body: NewPassword) -> Message: ) elif not user.is_active: raise HTTPException(status_code=400, detail="Inactive user") - hashed_password = get_password_hash(password=body.new_password) + hashed_password = security.get_password_hash(password=body.new_password) user.hashed_password = hashed_password session.add(user) session.commit()