mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
defender: allow to set a different score for "no auth tried" events
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -248,7 +248,7 @@ func resetUserPassword(w http.ResponseWriter, r *http.Request) {
|
||||
sendAPIResponse(w, r, err, "Password reset successful", http.StatusOK)
|
||||
}
|
||||
|
||||
func disconnectUser(username string, admin, role string) {
|
||||
func disconnectUser(username, admin, role string) {
|
||||
for _, stat := range common.Connections.GetStats("") {
|
||||
if stat.Username == username {
|
||||
common.Connections.Close(stat.ConnectionID, "")
|
||||
|
||||
Reference in New Issue
Block a user