Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
f9289d30
Commit
f9289d30
authored
Jul 23, 2024
by
Dillon
Browse files
Created new PersistentConfig for new environment variable ENABLE_USERNAME_PASSWORD_LOGIN
parent
709b56bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
backend/config.py
backend/config.py
+6
-0
No files found.
backend/config.py
View file @
f9289d30
...
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment