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
58cfa5b9
Commit
58cfa5b9
authored
May 08, 2024
by
Timothy J. Baek
Browse files
fix: trusted header
parent
1b2b05d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
backend/apps/web/routers/auths.py
backend/apps/web/routers/auths.py
+14
-15
No files found.
backend/apps/web/routers/auths.py
View file @
58cfa5b9
...
@@ -118,9 +118,8 @@ async def signin(request: Request, form_data: SigninForm):
...
@@ -118,9 +118,8 @@ async def signin(request: Request, form_data: SigninForm):
),
),
)
)
user
=
Auths
.
authenticate_user_by_trusted_header
(
trusted_email
)
user
=
Auths
.
authenticate_user_by_trusted_header
(
trusted_email
)
else
:
if
WEBUI_AUTH
==
False
:
if
WEBUI_AUTH
==
False
:
if
Users
.
get_num_users
()
!=
0
:
if
Users
.
get_num_users
()
!=
0
:
raise
HTTPException
(
400
,
detail
=
ERROR_MESSAGES
.
EXISTING_USERS
)
raise
HTTPException
(
400
,
detail
=
ERROR_MESSAGES
.
EXISTING_USERS
)
...
...
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