[Pmwiki-users] posting a comment to a password-protected page
John Rankin
john.rankin
Fri May 7 00:14:58 CDT 2004
A while ago, I asked about putting a text form on a page
with an edit password, allowing people to post comments
without having to know the password.
I thought that I just needed to RetrieveAuthPage with a
"read" setting, append the comment text from the form and
pass it to HandlePost.
But I now see that HandlePost does a RetrieveAuthPage with
an "edit" setting, thereby triggering a password prompt.
For compatibility with possible future changes, I would
like to avoid replicating the HandlePost function just to
change "edit" to "read".
Does anyone know of a way to achieve what I'm after? From
looking at the code, the solution appears to be:
- set $AuthFunction = BypassAuth; # temporarily
- BypassAuth calls BasicAuth with "read" instead of "edit"
Would this work or have I misunderstood something important?
Thanks
--
JR
--
John Rankin
More information about the pmwiki-users
mailing list