From 25e7db5ac98786bdca4feba026820662a67ff084 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 11 Nov 2023 12:20:27 +0800 Subject: [PATCH] fix seerr api --- app/core/security.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/security.py b/app/core/security.py index 95f1d460..e99e6112 100644 --- a/app/core/security.py +++ b/app/core/security.py @@ -82,7 +82,7 @@ def verify_uri_apikey(apikey: str = Depends(get_apikey)) -> str: """ 通过依赖项使用apikey进行身份认证 """ - if apikey != settings.API_KEY: + if apikey != settings.API_TOKEN: raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail="apikey校验不通过"