Browse Source

Log failed login attempt (#2454)

Signed-off-by: i312042 <viktoria.lyomcheva@sap.com>
Co-authored-by: i312042 <viktoria.lyomcheva@sap.com>
pull/3352/head
i-amelia 2 years ago committed by GitHub
parent
commit
457e133d39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      server/handlers.go

1
server/handlers.go

@ -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)

Loading…
Cancel
Save