mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 18:06:15 -04:00
Merge pull request #1787 from goldquest/dev_nopass_whensession
Grant access for valid session to password protected group pads so, if user has valid session, they don't need the password
This commit is contained in:
commit
b1b972a2b4
3 changed files with 14 additions and 0 deletions
|
@ -223,6 +223,12 @@ exports.checkAccess = function (padID, sessionCookie, token, password, callback)
|
|||
//--> grant access
|
||||
statusObject = {accessStatus: "grant", authorID: sessionAuthor};
|
||||
}
|
||||
//- the setting to bypass password validation is set
|
||||
else if(settings.sessionNoPassword)
|
||||
{
|
||||
//--> grant access
|
||||
statusObject = {accessStatus: "grant", authorID: sessionAuthor};
|
||||
}
|
||||
//- the pad is password protected and password is correct
|
||||
else if(isPasswordProtected && passwordStatus == "correct")
|
||||
{
|
||||
|
|
|
@ -109,6 +109,11 @@ exports.requireSession = false;
|
|||
*/
|
||||
exports.editOnly = false;
|
||||
|
||||
/**
|
||||
* A flag that bypasses password prompts for users with valid sessions
|
||||
*/
|
||||
exports.sessionNoPassword = false;
|
||||
|
||||
/**
|
||||
* Max age that responses will have (affects caching layer).
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue