Allow disabling Passwords by setting them to an empty string

This commit is contained in:
Patrick Rauscher 2012-04-07 00:33:24 +00:00
parent d0df0ff805
commit 085c01f5e7

View file

@ -431,7 +431,7 @@ exports.setPassword = function(padID, password, callback)
if(ERR(err, callback)) return;
//set the password
pad.setPassword(password);
pad.setPassword(password == "" ? null : password);
callback();
});