mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-11 08:10:58 +00:00
Merge branch '2.0' into 3.0
This commit is contained in:
commit
ef04a176dd
@ -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