mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 15:28:05 +03:00
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:
@@ -507,7 +507,6 @@ func (s *httpdServer) checkPublicShare(w http.ResponseWriter, r *http.Request, v
|
|||||||
if share.Password != "" {
|
if share.Password != "" {
|
||||||
if isWebClient {
|
if isWebClient {
|
||||||
if err := s.checkWebClientShareCredentials(w, r, &share); err != nil {
|
if err := s.checkWebClientShareCredentials(w, r, &share); err != nil {
|
||||||
handleDefenderEventLoginFailed(ipAddr, err) //nolint:errcheck
|
|
||||||
return share, nil, dataprovider.ErrInvalidCredentials
|
return share, nil, dataprovider.ErrInvalidCredentials
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user