mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 07:10:56 +03:00
add support for partial authentication
Multi-step authentication is activated disabling all single-step auth methods for a given user
This commit is contained in:
@@ -484,7 +484,7 @@ func TestUploadFiles(t *testing.T) {
|
||||
func TestWithInvalidHome(t *testing.T) {
|
||||
u := dataprovider.User{}
|
||||
u.HomeDir = "home_rel_path"
|
||||
_, err := loginUser(u, dataprovider.SSHLoginMethodPassword, "", "")
|
||||
_, err := loginUser(u, dataprovider.SSHLoginMethodPassword, "", nil)
|
||||
if err == nil {
|
||||
t.Errorf("login a user with an invalid home_dir must fail")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user