mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-23 06:57:59 +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 {
|
#container {
|
||||||
width: 1024px;
|
width: 1024px;
|
||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
height: 100vh;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#header {
|
#header {
|
||||||
|
|
|
@ -75,7 +75,7 @@ class Login(View):
|
||||||
if isinstance(data, Response):
|
if isinstance(data, Response):
|
||||||
return data
|
return data
|
||||||
|
|
||||||
with self.database.connction(True) as conn:
|
with self.database.session(True) as conn:
|
||||||
if not (user := conn.get_user(data['username'])):
|
if not (user := conn.get_user(data['username'])):
|
||||||
return Response.new_error(401, 'User not found', 'json')
|
return Response.new_error(401, 'User not found', 'json')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue