add client ID for plugin service
This commit is contained in:
1 parent
95da26cf49
commit
674a70cd23
26 files changed
+306
-320
No files matched your search
@@ -27,7 +27,7 @@ func PasswordCallback(au auth.Authenticator) PasswordCallbackFunc {
|
||||
return nil
|
||||
}
|
||||
return func(conn ssh.ConnMetadata, password []byte) (*ssh.Permissions, error) {
|
||||
if au.Authenticate(context.Background(), conn.User(), string(password)) {
|
||||
if ok, _ := au.Authenticate(context.Background(), conn.User(), string(password)); ok {
|
||||
return nil, nil
|
||||
}
|
||||
return nil, fmt.Errorf("password rejected for %s", conn.User())
|
||||
|
||||
Reference in new issue
Block a user