sergi/jsftp

auth with defined user but no password fails

Opened this issue · 1 comments

ggb88 commented

Hi,

If I attempt either

Ftp.auth("ggb", "", function(hadErr) 
Ftp.auth("ggb", null, function(hadErr)

jsftp fails auth, even though filezilla succeeds.

If I add a password to the user ggb and then try
Ftp.auth("ggb", "passsword", function(hadErr)
it works as expected

How should I be handling the case of an undefined password for a specific user?

Thanks

sergi commented

Do you mean that the user doesn't have a password set in the ftp server?