mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
add post-login hook
a login scope is supported too so you can get notifications for failed logins, successful logins or both
This commit is contained in:
@@ -652,8 +652,6 @@ func TestClientClose(t *testing.T) {
|
||||
}, 1*time.Second, 50*time.Millisecond)
|
||||
|
||||
for _, stat := range common.Connections.GetStats() {
|
||||
logger.DebugToConsole("close upload connection id %#v, active transfers: %v", stat.ConnectionID,
|
||||
stat.GetTransfersAsString())
|
||||
common.Connections.Close(stat.ConnectionID)
|
||||
}
|
||||
wg.Wait()
|
||||
@@ -684,8 +682,6 @@ func TestClientClose(t *testing.T) {
|
||||
}, 1*time.Second, 50*time.Millisecond)
|
||||
|
||||
for _, stat := range common.Connections.GetStats() {
|
||||
logger.DebugToConsole("close download connection id %#v, active transfers: %v", stat.ConnectionID,
|
||||
stat.GetTransfersAsString())
|
||||
common.Connections.Close(stat.ConnectionID)
|
||||
}
|
||||
wg.Wait()
|
||||
|
||||
Reference in New Issue
Block a user