Merge pull request #2118 from open-webui/dev

fix
This commit is contained in:
Timothy Jaeryang Baek 2024-05-08 17:17:38 -07:00 committed by GitHub
commit 90503be2ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 18 deletions

View File

@ -118,9 +118,7 @@ async def signin(request: Request, form_data: SigninForm):
),
)
user = Auths.authenticate_user_by_trusted_header(trusted_email)
else:
if WEBUI_AUTH == False:
elif WEBUI_AUTH == False:
admin_email = "admin@localhost"
admin_password = "admin"