mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-03 22:27:29 +00:00
Merge branch '3.0'
This commit is contained in:
commit
90842f90fa
@ -417,8 +417,7 @@ class SFTP extends SSH2
|
|||||||
*/
|
*/
|
||||||
public function login($username, ...$args)
|
public function login($username, ...$args)
|
||||||
{
|
{
|
||||||
$this->auth[] = array_merge([$username], $args);
|
if (!parent::login(...func_get_args())) {
|
||||||
if (!$this->sublogin($username, ...$args)) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2045,7 +2045,7 @@ class SSH2
|
|||||||
*/
|
*/
|
||||||
public function login($username, ...$args)
|
public function login($username, ...$args)
|
||||||
{
|
{
|
||||||
$this->auth[] = array_merge([$username], $args);
|
$this->auth[] = func_get_args();
|
||||||
|
|
||||||
// try logging with 'none' as an authentication method first since that's what
|
// try logging with 'none' as an authentication method first since that's what
|
||||||
// PuTTY does
|
// PuTTY does
|
||||||
|
Loading…
Reference in New Issue
Block a user