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
0e3b7a11
Commit
0e3b7a11
authored
Mar 31, 2024
by
Jun Siang Cheah
Browse files
chore: python formatting
parent
150152dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
backend/apps/web/models/auths.py
backend/apps/web/models/auths.py
+1
-2
backend/config.py
backend/config.py
+2
-1
No files found.
backend/apps/web/models/auths.py
View file @
0e3b7a11
...
@@ -122,8 +122,7 @@ class AuthsTable:
...
@@ -122,8 +122,7 @@ class AuthsTable:
except
:
except
:
return
None
return
None
def
authenticate_user_by_trusted_header
(
self
,
def
authenticate_user_by_trusted_header
(
self
,
email
:
str
)
->
Optional
[
UserModel
]:
email
:
str
)
->
Optional
[
UserModel
]:
log
.
info
(
f
"authenticate_user_by_trusted_header:
{
email
}
"
)
log
.
info
(
f
"authenticate_user_by_trusted_header:
{
email
}
"
)
try
:
try
:
auth
=
Auth
.
get
(
Auth
.
email
==
email
,
Auth
.
active
==
True
)
auth
=
Auth
.
get
(
Auth
.
email
==
email
,
Auth
.
active
==
True
)
...
...
backend/config.py
View file @
0e3b7a11
...
@@ -349,7 +349,8 @@ WEBUI_VERSION = os.environ.get("WEBUI_VERSION", "v1.0.0-alpha.100")
...
@@ -349,7 +349,8 @@ WEBUI_VERSION = os.environ.get("WEBUI_VERSION", "v1.0.0-alpha.100")
WEBUI_AUTH
=
True
WEBUI_AUTH
=
True
WEBUI_AUTH_TRUSTED_EMAIL_HEADER
=
os
.
environ
.
get
(
WEBUI_AUTH_TRUSTED_EMAIL_HEADER
=
os
.
environ
.
get
(
"WEBUI_AUTH_TRUSTED_EMAIL_HEADER"
,
None
)
"WEBUI_AUTH_TRUSTED_EMAIL_HEADER"
,
None
)
####################################
####################################
# WEBUI_SECRET_KEY
# WEBUI_SECRET_KEY
...
...
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