mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-27 04:34:45 +01:00
SFTP: add the same multi-factor auth support that Net_SSH2 enjoys
This commit is contained in:
parent
6fdac04fd1
commit
eabd0a8963
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user