Skip to content

Commit

Permalink
Log failed login attempt
Browse files Browse the repository at this point in the history
Signed-off-by: i312042 <viktoria.lyomcheva@sap.com>
  • Loading branch information
i312042 committed Mar 24, 2022
1 parent 897ae8d commit 9c22b0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/handlers.go
Expand Up @@ -357,6 +357,7 @@ func (s *Server) handlePasswordLogin(w http.ResponseWriter, r *http.Request) {
if err := s.templates.password(r, w, r.URL.String(), username, usernamePrompt(pwConn), true, backLink); err != nil {
s.logger.Errorf("Server template error: %v", err)
}
s.logger.Errorf("Failed login attempt for user: %q. Invalid credentials.", username)
return
}
redirectURL, err := s.finalizeLogin(identity, authReq, conn.Connector)
Expand Down

0 comments on commit 9c22b0f

Please sign in to comment.