I've created a FTP server which connects to my system's ip i'm able to transfer files from filezilla to my system i need to authenticate it with multiple username and password i tried with
connection.on('command:user', function(user, success, failure) { if (user == 'user123') { username = user; success(); } else { console.log("login failure"); failure(); } }); connection.on('command:pass', function(pass, success, failure) { console.log(pass) if (pass == 'welcome123') { success(username,fs); } else { console.log("login failure"); failure(); } });
i want to authenticate same with multiple username and password
I've created a FTP server which connects to my system's ip i'm able to transfer files from filezilla to my system i need to authenticate it with multiple username and password i tried with
connection.on('command:user', function(user, success, failure) { if (user == 'user123') { username = user; success(); } else { console.log("login failure"); failure(); } }); connection.on('command:pass', function(pass, success, failure) { console.log(pass) if (pass == 'welcome123') { success(username,fs); } else { console.log("login failure"); failure(); } });i want to authenticate same with multiple username and password