include token in /api/v1/login response

This commit is contained in:
Izalia Mae 2024-09-14 20:38:03 -04:00
parent 7329ef4fd9
commit 0e89b9bb11
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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]