Change is to ==
This commit is contained in:
parent
8c0872ea1a
commit
a04f24fcff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue