SSH2: make login() return false if no valid auth methods are found

This commit is contained in:
terrafrost 2021-12-07 21:57:55 -06:00
parent e0068833b5
commit 649661cd5e

View File

@ -2314,6 +2314,10 @@ class Net_SSH2
}
}
if (!count($newargs)) {
return false;
}
foreach ($newargs as $arg) {
if ($this->_login_helper($username, $arg)) {
return true;