From 0b55f121b4f7a38f277631910869d5f89e2c05ad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?N=C3=A1ndor=20Istv=C3=A1n=20Kr=C3=A1cser?=
 <bonifaido@gmail.com>
Date: Wed, 30 Oct 2019 13:13:33 +0100
Subject: [PATCH] Fix missing email in log message

Co-Authored-By: Felix Fontein <ff@dybuster.com>
---
 server/handlers.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/handlers.go b/server/handlers.go
index ba34934a..e7020670 100644
--- a/server/handlers.go
+++ b/server/handlers.go
@@ -503,7 +503,7 @@ func (s *Server) finalizeLogin(identity connector.Identity, authReq storage.Auth
 	}
 
 	s.logger.Infof("login successful: connector %q, username=%q, preferred_username=%q, email=%q, groups=%q",
-		authReq.ConnectorID, claims.Username, claims.PreferredUsername, claims.Email, claims.Groups)
+		authReq.ConnectorID, claims.Username, claims.PreferredUsername, email, claims.Groups)
 
 	return path.Join(s.issuerURL.Path, "/approval") + "?req=" + authReq.ID, nil
 }
-- 
GitLab