From 0e812c012ebf1aa70424b7a252dff225cc27aa4c Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Tue, 5 Mar 2024 14:05:54 -0500 Subject: [PATCH] fix POST /api/token and prevent scroll bar from always showing --- relay/frontend/style.css | 1 - relay/views/api.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/relay/frontend/style.css b/relay/frontend/style.css index 47b0f3a..f2a6fe1 100644 --- a/relay/frontend/style.css +++ b/relay/frontend/style.css @@ -89,7 +89,6 @@ textarea { #container { width: 1024px; margin: 0px auto; - height: 100vh; } #header { diff --git a/relay/views/api.py b/relay/views/api.py index a5c0fba..5a32cac 100644 --- a/relay/views/api.py +++ b/relay/views/api.py @@ -75,7 +75,7 @@ class Login(View): if isinstance(data, Response): return data - with self.database.connction(True) as conn: + with self.database.session(True) as conn: if not (user := conn.get_user(data['username'])): return Response.new_error(401, 'User not found', 'json')