SFTP: add the same multi-factor auth support that Net_SSH2 enjoys

This commit is contained in:
terrafrost 2013-05-14 17:32:31 -05:00
parent 6fdac04fd1
commit eabd0a8963

View File

@ -378,9 +378,10 @@ class Net_SFTP extends Net_SSH2 {
* @return Boolean
* @access public
*/
function login($username, $password = '')
function login($username)
{
if (!parent::login($username, $password)) {
$args = func_get_args();
if (!call_user_func_array(array('Net_SSH2', 'login'), $args)) {
return false;
}