Commit 58cfa5b9 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: trusted header

parent 1b2b05d2
...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment