Skip to content

Commit

Permalink
Log failed login attempt (#2454)
Browse files Browse the repository at this point in the history
Signed-off-by: i312042 <viktoria.lyomcheva@sap.com>
Co-authored-by: i312042 <viktoria.lyomcheva@sap.com>
  • Loading branch information
i-amelia and i312042 committed Feb 13, 2024
1 parent a0cf8b2 commit 457e133
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/handlers.go
Expand Up @@ -373,6 +373,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, canSkipApproval, err := s.finalizeLogin(ctx, identity, authReq, conn.Connector)
Expand Down

0 comments on commit 457e133

Please sign in to comment.