mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
fix: trusted header
This commit is contained in:
parent
1b2b05d2ea
commit
58cfa5b9c1
1 changed files with 15 additions and 16 deletions
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue