mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-15 19:16:55 +00: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
|
* @return Boolean
|
||||||
* @access public
|
* @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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user