[pmwiki-users] wildcard user name in authuser
Patrick R. Michaud
pmichaud at pobox.com
Tue Mar 21 10:28:14 CST 2006
On Tue, Mar 21, 2006 at 08:46:06AM -0500, Neil Herber wrote:
> I have a new wiki in my farm that needs to be protected by a read
> password. All users will share the password.
> When a user first enters the site, I want to present a login screen
> asking for a user name and password.
> Since the password is shared, *any* user name should be accepted. I
> want the username that is entered (authid, I think) to be used to set
> the Author name on any edits.
> How do I do this with PmWiki 2.1.3?
Edit the Site.AuthForm to read something like:
$[Name]: (:input text name=author:)\\
$[Password]: (:input password name=authpw:)
(:input submit value='OK':)
Since you're wanting to just set the $Author variable (and not
actually authenticate an identity, use "name=author" in the
form (as shown above) instead of "name=authid".
More information about the pmwiki-users