mod so one can set passwords a) for pads that are in no group and b) via the web interface

This commit is contained in:
jaseg 2011-12-06 22:00:42 +01:00
parent b0976a292f
commit dc8ff69553
5 changed files with 66 additions and 29 deletions

View file

@ -280,11 +280,11 @@ Example returns:
exports.setPublicStatus = function(padID, publicStatus, callback)
{
//ensure this is a group pad
if(padID.indexOf("$") == -1)
/*if(padID.indexOf("$") == -1)
{
callback({stop: "You can only get/set the publicStatus of pads that belong to a group"});
return;
}
}*/
//get the pad
getPadSafe(padID, true, function(err, pad)
@ -349,8 +349,8 @@ exports.setPassword = function(padID, password, callback)
//ensure this is a group pad
if(padID.indexOf("$") == -1)
{
callback({stop: "You can only get/set the password of pads that belong to a group"});
return;
//callback({stop: "You can only get/set the password of pads that belong to a group"});
//return;
}
//get the pad