mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00: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:
@@ -350,7 +350,7 @@ func TestUploadFiles(t *testing.T) {
|
||||
func TestWithInvalidHome(t *testing.T) {
|
||||
u := dataprovider.User{}
|
||||
u.HomeDir = "home_rel_path" //nolint:goconst
|
||||
_, err := loginUser(u, dataprovider.SSHLoginMethodPassword, "", nil)
|
||||
_, err := loginUser(u, dataprovider.LoginMethodPassword, "", nil)
|
||||
assert.Error(t, err, "login a user with an invalid home_dir must fail")
|
||||
|
||||
u.HomeDir = os.TempDir()
|
||||
|
||||
Reference in New Issue
Block a user