corregido la guarrada #2

Merged
garbelo merged 1 commits from desarrollo into main 2026-01-28 15:48:44 +00:00
Showing only changes of commit 148c86563b - Show all commits

View File

@@ -35,6 +35,7 @@ def get_current_user(credentials: HTTPBasicCredentials | None = Depends(security
# Guarrada maxima, yo no he sido
correct_username = secrets.compare_digest(credentials.username, INT_USER)
correct_password = secrets.compare_digest(credentials.password, INT_PASS)
if not (correct_username and correct_password):
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Credenciales incorrectas",