[pmwiki-users] Page password persistence

Petko Yotov 5ko at 5ko.fr
Wed Apr 13 04:21:46 CDT 2011


On Wednesday 13 April 2011 04:51:23, Randy Brown wrote :
> I'm using AuthUser. The group memberships related to a logged in user are
> in AuthList array. But I'm having trouble with passwords that the user
> enters.
> 
> Entering a password (without logging in with a username) lets the user read
> a page that has a read password. But as soon as the user tries to read the
> page again, the password is requested again. Dumps show that at no point
> does the AuthList array contain the password - even when the page is
> visible to the user.

It is the $AuthPw array, not $AuthList, that holds the passwords.

> I am using a custom AuthForm, but I don't think my code used to behave this
> way. Maybe PmWiki changed (I'm using version 2.2.24), but I assume I
> introduced the problem. Any suggestions?

A read-protected page on a clean PmWiki 2.2.24 installation with AuthUser asks 
for the password once, and when you return to the same page, or to another 
page with the same read password, it shows the page without asking for it 
again.

Your custom AuthForm should contain at least a field named "authpw".

This may be hard to debug, but the usual way is to comment-out recipes in your 
config.php file one at a time, and try the wiki -- at some point it will 
hopefully work, that would mean that the last commented-out recipe had some 
interference.

See also http://www.pmwiki.org/wiki/PmWiki/LocalCustomizations#configphp-order 

Petko



More information about the pmwiki-users mailing list