From ab454379b19a6e496bac0c927e6ba934c3d49bbb Mon Sep 17 00:00:00 2001 From: sp Date: Tue, 2 Mar 2021 22:55:17 +1100 Subject: [PATCH] added session data to debug Env --- apiV1login.go | 1 + 1 file changed, 1 insertion(+) diff --git a/apiV1login.go b/apiV1login.go index c83beb6..507097d 100644 --- a/apiV1login.go +++ b/apiV1login.go @@ -56,6 +56,7 @@ func apiV1Login(w http.ResponseWriter, r *http.Request, ss *loan.Session) { u, e := ss.GetUser() if e == nil { res.Env.Body["debug_session_user"] = u + res.Env.Session = *ss } else { log.Warn("cannot read user for session ", ss) res.Env.Body["debug_session_user_error"] = e.Error()