Allow disabling Passwords by setting them to an empty string

pull/608/head
Patrick Rauscher 2012-04-07 00:33:24 +00:00
parent 2435003403
commit 0e7cb78ec2
1 changed files with 1 additions and 1 deletions

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();
});