diff --git a/plugin/flarum.py b/plugin/flarum.py index 51fe7ce..20e7118 100644 --- a/plugin/flarum.py +++ b/plugin/flarum.py @@ -69,8 +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) + username = await check_apikey('/'.join(list(apikey))) if (username == ""): return {"msg": "token无效"} if (flarum_session is None):