SFTP: re-use SSH2 login method

This commit is contained in:
terrafrost 2020-03-09 19:49:20 -05:00
parent 69840093be
commit 229f6af1ca

View File

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