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:
Nicola Murino
2020-08-12 16:15:12 +02:00
parent a9e21c282a
commit aa0ed5dbd0
21 changed files with 220 additions and 129 deletions

View File

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