add timezone to session expiration
This commit is contained in:
parent
350a779f9c
commit
38debc2554
1 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,8 @@ async fn login<Repo: UserRepository + SessionRepository>(
|
||||||
|
|
||||||
let token = session.token();
|
let token = session.token();
|
||||||
let mut response: Response =
|
let mut response: Response =
|
||||||
Json(json!({ "session_token": token, "expires_at": session.expires_at })).into_response();
|
Json(json!({ "session_token": token, "expires_at": session.expires_at.and_utc() }))
|
||||||
|
.into_response();
|
||||||
|
|
||||||
response.headers_mut().insert(
|
response.headers_mut().insert(
|
||||||
SET_COOKIE,
|
SET_COOKIE,
|
||||||
|
|
Loading…
Reference in a new issue