fix POST /api/token and prevent scroll bar from always showing

This commit is contained in:
Izalia Mae 2024-03-05 14:05:54 -05:00
parent e86a376f6e
commit 0e812c012e
2 changed files with 1 additions and 2 deletions

View file

@ -89,7 +89,6 @@ textarea {
#container {
width: 1024px;
margin: 0px auto;
height: 100vh;
}
#header {

View file

@ -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')