mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-12-23 11:31:07 +00:00
fix POST /api/token and prevent scroll bar from always showing
This commit is contained in:
parent
e86a376f6e
commit
0e812c012e
|
@ -89,7 +89,6 @@ textarea {
|
|||
#container {
|
||||
width: 1024px;
|
||||
margin: 0px auto;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
#header {
|
||||
|
|
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue