diff --git a/src/infrastructure/api/users/auth_service.py b/src/infrastructure/api/users/auth_service.py index 581802c..3546d0e 100644 --- a/src/infrastructure/api/users/auth_service.py +++ b/src/infrastructure/api/users/auth_service.py @@ -4,13 +4,9 @@ from passlib.context import CryptContext from typing import Optional, Dict from core.config import ConfSettings -# Configurar contexto para hashing de contraseñas -# Soporta argon2 (nuevo) y bcrypt (antiguo) para compatibilidad hacia atrás -pwd_context = CryptContext( - schemes=["argon2"], - deprecated=["bcrypt"], - argon2__rounds=3 -) +# Configurar contexto para hashing de contraseñas con argon2 +# argon2 es más moderno y más seguro que bcrypt +pwd_context = CryptContext(schemes=["argon2"]) class AuthService: