[pmwiki-users] login with user names
Hans
design5 at softflow.co.uk
Sat Feb 24 03:06:55 CST 2007
Friday, February 23, 2007, 9:53:56 PM, Hans wrote:
> Can I use authuser to require users logging in with name and password,
> without keeping a list of user names, and hand out a general edit
> password instead? I would like the logged in user name used as $Author
> and set as author cookie.
Well I approached this with a fresh mind, and found this solution:
Edit Site.AuthForm and change
(:input text name=authid:)
to
(:input text name=author:)
Add in config.php:
$EnableAuthUser = 1;
include_once("$FarmD/scripts/author.php");
$EnableAuthUser = 1; is requird in Site.AuthForm to display the name
field, and I could have changed it to a different variable name,
but I guess it is not doing any harm either.
Hans
More information about the pmwiki-users
mailing list