[pmwiki-users] HtpasswdForm doesn't work, why?

Patrick R. Michaud pmichaud at pobox.com
Fri May 19 13:47:56 CDT 2006

On Fri, May 19, 2006 at 01:38:43PM -0400, Benoît Pruneau wrote:
>    In the cookbook/htpasswdform.php file...
>    include_once('scripts/authuser.php');
>    # If the admin hasn't configured any password entries, just return.
>    if (!$AuthUser) return;
>    -------------------------------
>    So I'm not need to include authuser.php in local/config.php if I include
>    cookbook/htpasswdform.php...

You probably do need to tell the authuser script about the .htpasswd
file, or otherwise configure things so that $AuthUser is set.
Try adding

    $AuthUser['htpasswd'] = 'local/.htpasswd';

or even just

    $AuthUser = array();

before loading the htpasswdform.php script.


More information about the pmwiki-users mailing list