[pmwiki-users] double logon

Petko Yotov 5ko at 5ko.fr
Wed Sep 30 16:00:26 CDT 2009


On Wednesday 30 September 2009 20:39:10 Peter Bowers wrote:
> In my farmconfig I set the admin password and then
> used a CondAuth() call for something else.  That apparently caches the
> authorizations in such a way that even when I reset the admin password
> in config.php it didn't take effect.  It also forced the double-logon.

It could also happen if (farm)config.php, or an included recipe, directly 
calls the functions CondAuth(), or RetrieveAuthPage(), PageTextVar(), 
PageVar() and possibly others, before defining all passwords and before 
including AuthUser (if required).

For the record, a workaround is mentioned at the following page:
  http://www.pmwiki.org/wiki/PITS/01143

This is not a bug in PmWiki, it's how the programming languages work, and is 
currently not fixable, i.e. cannot be made user-proof.

Such questions seem to come over and over again, even if it is in the docs. 
I'm not sure where and how we should better document it -- if you have an idea 
of improvement, please edit the documentation. Eg. where the CondAuth() 
function is mentioned.

Thanks,
Petko



More information about the pmwiki-users mailing list