mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-23 23:17:58 +00:00
Compare commits
1 commit
aef97dc690
...
36d2ae733c
Author | SHA1 | Date | |
---|---|---|---|
36d2ae733c |
|
@ -89,6 +89,7 @@ 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.session(True) as conn:
|
with self.database.connction(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