diff --git a/backend/apps/web/models/auths.py b/backend/apps/web/models/auths.py index 26934d6e2..40efbcf2f 100644 --- a/backend/apps/web/models/auths.py +++ b/backend/apps/web/models/auths.py @@ -122,8 +122,7 @@ class AuthsTable: except: return None - def authenticate_user_by_trusted_header(self, - email: str) -> Optional[UserModel]: + def authenticate_user_by_trusted_header(self, email: str) -> Optional[UserModel]: log.info(f"authenticate_user_by_trusted_header: {email}") try: auth = Auth.get(Auth.email == email, Auth.active == True) diff --git a/backend/config.py b/backend/config.py index 41269488e..a1f565b23 100644 --- a/backend/config.py +++ b/backend/config.py @@ -349,7 +349,8 @@ WEBUI_VERSION = os.environ.get("WEBUI_VERSION", "v1.0.0-alpha.100") WEBUI_AUTH = True WEBUI_AUTH_TRUSTED_EMAIL_HEADER = os.environ.get( - "WEBUI_AUTH_TRUSTED_EMAIL_HEADER", None) + "WEBUI_AUTH_TRUSTED_EMAIL_HEADER", None +) #################################### # WEBUI_SECRET_KEY