"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "83107c8ea52983c9582ea13d2de0a151e32abe8e"
Commit f9289d30 authored by Dillon's avatar Dillon
Browse files

Created new PersistentConfig for new environment variable ENABLE_USERNAME_PASSWORD_LOGIN

parent 709b56bc
...@@ -709,6 +709,12 @@ ENABLE_SIGNUP = PersistentConfig( ...@@ -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 = PersistentConfig(
"DEFAULT_LOCALE", "DEFAULT_LOCALE",
"ui.default_locale", "ui.default_locale",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment