Log the session after verification

This commit is contained in:
Peter Stuifzand 2018-07-25 14:55:36 +02:00
parent 4078559a89
commit 14a1edee57

View File

@ -292,6 +292,7 @@ func (h *mainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
sess.Me = authResponse.Me
sess.LoggedIn = true
saveSession(sessionVar, &sess, conn)
log.Printf("SESSION: %#v\n", sess)
if sess.NextURI != "" {
http.Redirect(w, r, sess.NextURI, 302)
} else {