mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
Created new PersistentConfig for new environment variable ENABLE_USERNAME_PASSWORD_LOGIN
This commit is contained in:
parent
709b56bc40
commit
f9289d3079
1 changed files with 6 additions and 0 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue