From e8fc72c9de1e863315370be456d31d6a4022b2ca Mon Sep 17 00:00:00 2001 From: loneshore <57182522+loneshore@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:38:32 +0800 Subject: [PATCH] :bug: Fix web interface login (#83) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复登录跳转问题 --- pagermaid/web/api/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pagermaid/web/api/utils.py b/pagermaid/web/api/utils.py index d44282d..9ac32a3 100644 --- a/pagermaid/web/api/utils.py +++ b/pagermaid/web/api/utils.py @@ -11,7 +11,7 @@ TOKEN_EXPIRE_MINUTES = 30 def authentication(): - def inner(token: Optional[str] = Header(...)): + def inner(token: Optional[str] = Header(None)): if Config.WEB_SECRET_KEY: if token == Config.WEB_SECRET_KEY: return