mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-15 17:57:12 +00:00
Merge branch '3.0'
This commit is contained in:
commit
f15f8d7d17
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user