defender: don't penalize redirects to the login page

This is normal behavior

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2025-02-23 16:57:11 +01:00
parent 6df128a0d4
commit 96e83bf084
3 changed files with 10 additions and 9 deletions

View File

@@ -494,7 +494,6 @@ func (s *httpdServer) checkPublicShare(w http.ResponseWriter, r *http.Request, v
if share.Password != "" {
if isWebClient {
if err := s.checkWebClientShareCredentials(w, r, &share); err != nil {
handleDefenderEventLoginFailed(ipAddr, err) //nolint:errcheck
return share, nil, dataprovider.ErrInvalidCredentials
}
} else {