Merge branch '3.0'

This commit is contained in:
terrafrost 2020-03-07 21:36:30 -06:00
commit f15f8d7d17

View File

@ -2046,6 +2046,15 @@ class SSH2
public function login($username, ...$args)
{
$this->auth[] = array_merge([$username], $args);
// try logging with 'none' as an authentication method first since that's what
// PuTTY does
if ($this->sublogin($username)) {
return true;
}
if (!count($args)) {
return false;
}
return $this->sublogin($username, ...$args);
}