From 0e7cb78ec2f06d2dff0df85605936c1f2d708472 Mon Sep 17 00:00:00 2001 From: Patrick Rauscher Date: Sat, 7 Apr 2012 00:33:24 +0000 Subject: [PATCH] Allow disabling Passwords by setting them to an empty string --- src/node/db/API.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/db/API.js b/src/node/db/API.js index 09cc95afc..37fd3f161 100644 --- a/src/node/db/API.js +++ b/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(); });