mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 06:37:10 -04:00
Now working. The password can be set from within the pad editor.
Currently there are only two remaining issues: 1 After the password is set, re-authentication is needed 2 The toolbar button does not yet have a nice icon
This commit is contained in:
parent
c905fd76c1
commit
a161b59601
8 changed files with 56 additions and 49 deletions
|
@ -217,7 +217,6 @@ exports.checkAccess = function (padID, sessionID, token, password, callback)
|
|||
else if(!isPublic)
|
||||
{
|
||||
//--> deny access
|
||||
console.log("not public");
|
||||
statusObject = {accessStatus: "deny"};
|
||||
}
|
||||
else
|
||||
|
@ -228,9 +227,8 @@ exports.checkAccess = function (padID, sessionID, token, password, callback)
|
|||
// there is no valid session avaiable AND pad doesn't exists
|
||||
else
|
||||
{
|
||||
//--> deny access
|
||||
console.log("imaginary pad");
|
||||
statusObject = {accessStatus: "deny"};
|
||||
//grant access so he pad can be generated
|
||||
statusObject = {accessStatus: "grant", authorID: tokenAuthor};
|
||||
}
|
||||
|
||||
callback();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue