chore: translate remaining Romanian code comments to English (STRICT ENGLISH POLICY)

This commit is contained in:
Daniel Bedeleanu
2026-04-11 14:25:03 +03:00
parent f0de7d763a
commit c31209b740
2 changed files with 6 additions and 6 deletions

View File

@@ -114,11 +114,11 @@ def get_users(
db: Session = Depends(get_db),
current_user: auth.TokenData = Depends(auth.get_current_user)
):
"""[C-01] Lista utilizatori — doar pentru useri autentificati."""
"""[C-01] User list — only for authenticated users."""
users = db.query(models.User).all()
# Auto-seed if empty
if not users:
# [SECURITY FIX C-03] Generare parolă aleatoare în loc de "admin" hardcodat
# [SECURITY FIX C-03] Generate random password instead of hardcoded "admin"
initial_password = secrets.token_urlsafe(16)
new_user = models.User(
username="Admin",
@@ -164,8 +164,8 @@ def login(form_data: schemas.UserLogin, db: Session = Depends(get_db)):
if verify_password(form_data.password, user.hashed_password):
authenticated = True
elif user and not user.hashed_password:
# [SECURITY FIX C-02] Bypass-ul pentru utilizatori fără parolă a fost eliminat.
# Utilizatorii LDAP trebuie să se autentifice prin fluxul LDAP de mai jos.
# [SECURITY FIX C-02] Bypass for passwordless users has been removed.
# LDAP users must authenticate via the LDAP flow below.
pass
# If local failed, try LDAP