From 709b56bc409abdc0b725aa6b5f183259a3c43923 Mon Sep 17 00:00:00 2001 From: Dillon Date: Tue, 23 Jul 2024 22:19:41 -0400 Subject: [PATCH] imported and added new ENABLE_USERNAME_PASSWORD_LOGIN environment variable --- backend/apps/webui/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/apps/webui/main.py b/backend/apps/webui/main.py index 570cad9f1..f74acd916 100644 --- a/backend/apps/webui/main.py +++ b/backend/apps/webui/main.py @@ -35,6 +35,7 @@ from config import ( DEFAULT_PROMPT_SUGGESTIONS, DEFAULT_USER_ROLE, ENABLE_SIGNUP, + ENABLE_USERNAME_PASSWORD_LOGIN, USER_PERMISSIONS, WEBHOOK_URL, WEBUI_AUTH_TRUSTED_EMAIL_HEADER, @@ -64,6 +65,7 @@ origins = ["*"] app.state.config = AppConfig() app.state.config.ENABLE_SIGNUP = ENABLE_SIGNUP +app.state.config.ENABLE_USERNAME_PASSWORD_LOGIN = ENABLE_USERNAME_PASSWORD_LOGIN app.state.config.JWT_EXPIRES_IN = JWT_EXPIRES_IN app.state.AUTH_TRUSTED_EMAIL_HEADER = WEBUI_AUTH_TRUSTED_EMAIL_HEADER app.state.AUTH_TRUSTED_NAME_HEADER = WEBUI_AUTH_TRUSTED_NAME_HEADER