Change is to ==

This commit is contained in:
Jimmy 2022-02-20 05:53:10 +00:00
parent 8c0872ea1a
commit a04f24fcff
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ async def auth_hook(request: Request):
async def auth_web(request: Request):
token = request._query_params.get("token")
if token is None or token is "":
if token == None or token == "":
raise HTTPException(status_code=400, detail="Missing token")
if token == getenv("TOKEN"):
return