From f9289d3079aaa1dbda379033fb9645a0536b5db4 Mon Sep 17 00:00:00 2001 From: Dillon Date: Tue, 23 Jul 2024 22:20:45 -0400 Subject: [PATCH] Created new PersistentConfig for new environment variable ENABLE_USERNAME_PASSWORD_LOGIN --- backend/config.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/config.py b/backend/config.py index fe68eee34..166f82042 100644 --- a/backend/config.py +++ b/backend/config.py @@ -709,6 +709,12 @@ ENABLE_SIGNUP = PersistentConfig( ), ) +ENABLE_USERNAME_PASSWORD_LOGIN = PersistentConfig( + "ENABLE_USERNAME_PASSWORD_LOGIN", + "ui.enable_username_password_login", + os.environ.get("ENABLE_USERNAME_PASSWORD_LOGIN", "True").lower() == "true", +) + DEFAULT_LOCALE = PersistentConfig( "DEFAULT_LOCALE", "ui.default_locale",