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无效"}