Merge pull request #2114 from open-webui/dev

fix: trusted header
This commit is contained in:
Timothy Jaeryang Baek 2024-05-08 16:20:43 -07:00 committed by GitHub
commit 61ffbf5b5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -118,9 +118,8 @@ async def signin(request: Request, form_data: SigninForm):
),
)
user = Auths.authenticate_user_by_trusted_header(trusted_email)
else:
if WEBUI_AUTH == False:
if Users.get_num_users() != 0:
raise HTTPException(400, detail=ERROR_MESSAGES.EXISTING_USERS)