Browse files

Allow disabling Passwords by setting them to an empty string

  • Loading branch information...
1 parent d0df0ff commit 085c01f5e753a824a9f9cc0afad483a8a385242b @prauscher committed Apr 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/node/db/API.js
View
2 src/node/db/API.js
@@ -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();
});

0 comments on commit 085c01f

Please sign in to comment.