Actually fix login
This commit is contained in:
parent
67a4e85406
commit
5775560933
2 changed files with 3 additions and 3 deletions
|
@ -1 +1 @@
|
|||
__version__ = "0.1.0.dev11"
|
||||
__version__ = "0.1.0.dev13"
|
||||
|
|
|
@ -28,8 +28,8 @@ log = logging.getLogger("maubot.server")
|
|||
|
||||
@web.middleware
|
||||
async def auth(request: web.Request, handler: Handler) -> web.Response:
|
||||
subpath = request.path.lstrip(get_config()["server.base_path"])
|
||||
if subpath.startswith("auth/") or subpath == "logs":
|
||||
subpath = request.path[len(get_config()["server.base_path"]):]
|
||||
if subpath.startswith("/auth/") or subpath == "/logs":
|
||||
return await handler(request)
|
||||
err = check_token(request)
|
||||
if err is not None:
|
||||
|
|
Loading…
Reference in a new issue