Improve auth process 2

This commit is contained in:
Urtzi Alfaro
2025-07-20 08:33:23 +02:00
parent 8486d1db7c
commit 305f31223e
3 changed files with 360 additions and 97 deletions

View File

@@ -8,7 +8,7 @@ from typing import List
import structlog
from app.core.database import get_db
from app.schemas.auth import UserResponse, PasswordChangeRequest
from app.schemas.auth import UserResponse, PasswordChange
from app.schemas.users import UserUpdate
from app.services.user_service import UserService
from app.core.auth import get_current_user
@@ -75,7 +75,7 @@ async def update_current_user(
@router.post("/change-password")
async def change_password(
password_data: PasswordChangeRequest,
password_data: PasswordChange,
current_user: User = Depends(get_current_user),
db: AsyncSession = Depends(get_db)
):