1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-04 18:48:24 +01:00

Merge branch '2.0' into 3.0

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

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);
}