feat: WEBUI_AUTH_TRUSTED_GROUPS_HEADER

This commit is contained in:
Timothy Jaeryang Baek committed 2025-05-24 23:17:12 +04:00
1 parent 17263a294f
commit cce5f024bd
4 files changed
+65 -13

No files matched your search

+2 -2
View File
@@ -159,8 +159,8 @@ class AuthsTable:
except Exception:
return False
def authenticate_user_by_trusted_header(self, email: str) -> Optional[UserModel]:
log.info(f"authenticate_user_by_trusted_header: {email}")
def authenticate_user_by_email(self, email: str) -> Optional[UserModel]:
log.info(f"authenticate_user_by_email: {email}")
try:
with get_db() as db:
auth = db.query(Auth).filter_by(email=email, active=True).first()