mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-11 08:10:58 +00:00
SFTP: re-use SSH2 login method
This commit is contained in:
parent
69840093be
commit
229f6af1ca
@ -467,9 +467,7 @@ class Net_SFTP extends Net_SSH2
|
||||
*/
|
||||
function login($username)
|
||||
{
|
||||
$args = func_get_args();
|
||||
$this->auth[] = $args;
|
||||
if (!call_user_func_array(array(&$this, '_login'), $args)) {
|
||||
if (!call_user_func_array(array(&$this, 'parent::login'), func_get_args())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user