File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 99from app .api .deps import CurrentUser , SessionDep , get_current_active_superuser
1010from app .core import security
1111from app .core .config import settings
12- from app .core .security import get_password_hash
1312from app .models import Message , NewPassword , Token , UserPublic
1413from 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 ()
You can’t perform that action at this time.
0 commit comments