I have the "Global Password Setting" set to "Allow only global" and I have multiple pages. When entering the global password on protected page 1, I get access to it. When visiting protected page 2, I am being prompted for the password again.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Lukas von Blarer created an issue. See original summary.

luksak’s picture

Title: Global password is required multiple times for every protected page created » Global password is requested multiple times for every protected page
luksak’s picture

luksak’s picture

Status: Active » Needs review
StatusFileSize
new2.24 KB

I implemented this for the "Allow only global" setting. Implementing this for "Allow per page password or Global password" is a little more complex.

In case someone uses the global password, I set the pid to 0.

mekal’s picture

StatusFileSize
new2.19 KB

#4 did not apply for me on dev (Development version: 8.x-1.x-dev updated 11 Nov 2019 at 00:03 UTC).
Submitting a re-roll.

mekal’s picture

If you want to use #5 with the wildcard patch (#17), here is a reroll for that.

oksana-c’s picture

Status: Needs review » Needs work
flydragon865’s picture

The requirement was to add an option for the administrator so that the Global Password is entered only once. The rest of the module functions should work as is. The patch adds a checkbox in admin screen [/admin/config/system/protected_pages/settings] for Allow Only Global option. If this is checked, the global password can be entered only once for all the protected pages.

Cheers!

dmanderc’s picture

StatusFileSize
new2.59 KB

somehow patch 6 was not working for me this one does.

douggreen’s picture

berliner’s picture

Status: Needs work » Needs review
StatusFileSize
new4.33 KB

This is a re-roll of #8, which sounds like the better approach compared to #9 which removed the config part (form and schema). Patch applies to current dev and to 8.x-1.6. Seems to work as expected.

ciprian.jitaru’s picture

StatusFileSize
new4.45 KB

This is a re-roll of #11. Patch applies to 8.x-1.9.

aaronbauman made their first commit to this issue’s fork.

aaronbauman’s picture

Opened MR!44 with patch from #12, which was not applying for me.