mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-09 18:08:00 +00:00
include token in /api/v1/login
response
This commit is contained in:
parent
7329ef4fd9
commit
0e89b9bb11
|
@ -142,7 +142,7 @@ class Connection(SqlConnection):
|
|||
|
||||
|
||||
# todo: check if software is different than stored row
|
||||
def put_inbox(self,
|
||||
def put_inbox(self, # noqa: E301
|
||||
domain: str,
|
||||
inbox: str | None = None,
|
||||
actor: str | None = None,
|
||||
|
|
|
@ -213,7 +213,7 @@ class Login(View):
|
|||
|
||||
app = conn.put_app_login(user)
|
||||
|
||||
resp = Response.new(app.get_api_data(), ctype = 'json')
|
||||
resp = Response.new(app.get_api_data(True), ctype = 'json')
|
||||
resp.set_cookie(
|
||||
'user-token',
|
||||
app.token, # type: ignore[arg-type]
|
||||
|
|
Loading…
Reference in a new issue