You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting the issue, Azure has a free tier, if I have time I will try to add support. Can you try this and share your results? You'll need to update the configuration object.
/** Add your config **/varconfig={host: 'localhost',port: 21,user: 'root',pass: '',debug: true};constFTP=require('ftpimp');constftp=FTP.create(config,false);//add the code to handle requesting a passwordftp.cmd.codes[331]='sendPass';//change login to only send userftp.cmd.login=ftp.user(ftp.config.user,(err,data)=>{if(err){returnconsole.log(err);}console.log('user sent');});//attach sendPass so that when 331 comes in, this method is triggeredftp.cmd.sendPass=function(){console.log('sending pass');ftp.pass(ftp.config.pass,function(err,data){if(err){returnconsole.log(err);}console.log('password sent');ftp.raw('CWD',function(res){vardir=res.indexOf('/');dir=res.slice(dir-1).trim();ftp.cwd=ftp.baseDir=dir;console.log('current dir: '+ftp.cwd);ftp.emit('ready');ftp.isReady=true;});});};
I try this username Azure format: appservice\username and return me:
handle.data.waiting: false 331
....................
331 Password required
331
The text was updated successfully, but these errors were encountered: