From 9428cc2d9c91ba72580084f73dadbc2c4fe8e4fc Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Tue, 24 Oct 2023 01:47:57 +0300 Subject: [PATCH] Fix field name in session cookie; prevented logged in useds authenticating. --- cista/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cista/app.py b/cista/app.py index 5f0e010..8c740db 100755 --- a/cista/app.py +++ b/cista/app.py @@ -29,7 +29,7 @@ async def main_stop(app, loop): async def use_session(req): req.ctx.session = session.get(req) try: - req.ctx.user = config.config.users[req.ctx.session["user"]] # type: ignore + req.ctx.user = config.config.users[req.ctx.session["username"]] # type: ignore except (AttributeError, KeyError, TypeError): req.ctx.user = None # CSRF protection