From 1551d554e4ac80ea6e5a37f9cca35fc03ea654bb Mon Sep 17 00:00:00 2001 From: cxykevin Date: Mon, 26 Aug 2024 17:53:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dflarum=E7=99=BB=E5=BD=95bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/flarum.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/flarum.py b/plugin/flarum.py index 93ba9a5..51fe7ce 100644 --- a/plugin/flarum.py +++ b/plugin/flarum.py @@ -69,6 +69,7 @@ def main(app: FastAPI, ROOT: str, apikeys: dict): @app.post("/app/flarum/login") async def login(apikey: str, csrftoken: str, resp: Response, flarum_session: Annotated[str | None, Cookie()] = None): + apikey = apikey.replace("/", "") username = await check_apikey(apikey) if (username == ""): return {"msg": "token无效"}