[pmwiki-users] authuser forcing Author name stopped working?

Neil Herber nospam at eton.ca
Thu Jul 7 21:14:50 CDT 2005


At 2005-07-07  09:06 PM -0500, Patrick R. Michaud is rumored to have said:
>So, it sounds as though what you really want is to set the author
>name based on the password form and not based on authentication, so
>perhaps something like:
>
>     $AuthUser['htpasswd'] = '/path/to/your/.htpasswd';
>     include_once("$FarmD/scripts/authuser.php");
>     if (@$_POST['authid']) {
>       $Author = $_POST['authid'];
>       setcookie('author', $Author, 0, '/');
>     }

Exactly what I want to do! I shall try it now.

Just FYI, the full entry in config.php is/was:

$DefaultPasswords['read'] = array(crypt('obscured'), 'id:*');
$AuthUser['htpasswd'] = 'W:/Apache Group/Apache2/obscured';
include_once("$FarmD/scripts/authuser.php");
     if ($AuthId) {
         $Author = $AuthId;
         setcookie('author',$Author,0,'/');
         }




Neil

Neil Herber
Corporate info at http://www.eton.ca/
Eton Systems, 15 Pinepoint Drive, Nepean, ON, Canada K2H 6B1
Tel: (613) 829-4668 




More information about the pmwiki-users mailing list