Compare commits

..

7 Commits

Author SHA1 Message Date
d3af112bdf revert 4b0f93540f
revert Update backend/beyond_api/security.py
2026-01-28 15:47:51 +00:00
4b0f93540f Update backend/beyond_api/security.py 2026-01-28 15:47:02 +00:00
3caea45730 Merge pull request '-Guarrada urgente pra entregar usaurio distinto.' (#1) from desarrollo into main
Reviewed-on: #1
2026-01-28 15:31:01 +00:00
88a7edba5c revert 2f6ad3b52c
revert Update backend/beyond_api/security.py
2026-01-28 15:30:05 +00:00
5b98143117 revert 3ed079542a
revert Update backend/beyond_api/security.py
2026-01-28 15:29:49 +00:00
3ed079542a Update backend/beyond_api/security.py 2026-01-28 15:23:12 +00:00
2f6ad3b52c Update backend/beyond_api/security.py 2026-01-28 15:22:33 +00:00

View File

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