mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +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:
@@ -165,7 +165,7 @@ func TestCompareUserFilters(t *testing.T) {
|
||||
actual.Filters.DeniedLoginMethods = []string{dataprovider.SSHLoginMethodPublicKey}
|
||||
err = checkUser(expected, actual)
|
||||
assert.Error(t, err)
|
||||
expected.Filters.DeniedLoginMethods = []string{dataprovider.SSHLoginMethodPassword}
|
||||
expected.Filters.DeniedLoginMethods = []string{dataprovider.LoginMethodPassword}
|
||||
err = checkUser(expected, actual)
|
||||
assert.Error(t, err)
|
||||
expected.Filters.DeniedLoginMethods = []string{}
|
||||
|
||||
Reference in New Issue
Block a user