|
From: Geoffrey T. D. <da...@us...> - 2001-07-20 17:40:15
|
Update of /cvsroot/phpwiki/phpwiki
In directory usw-pr-cvs1:/tmp/cvs-serv1029
Modified Files:
index.php
Log Message:
Added support for bogo-logins.
One can now "login" using any WikiWord as a user ID.
(Unless logging in as the admin user, any password will work.)
Currently, the sole effect of logging in is that the
the logged-in user ID is recorded as the author of any
page edits. Thus, "logging in" allows one to control
the author which appears in RecentChanges and the page
info display.
Index: index.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/index.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** index.php 2001/07/12 03:49:05 1.19
--- index.php 2001/07/20 17:40:12 1.20
***************
*** 61,64 ****
--- 61,70 ----
define('ACCESS_LOG', '/tmp/wiki_access_log');
+
+ // If ALLOW_BOGO_LOGIN is true, users are allowed to login
+ // (with any/no password) using any userid which: 1) is not
+ // the ADMIN_USER, 2) is a valid WikiWord (matches $WikiNameRegexp.)
+ define('ALLOW_BOGO_LOGIN', true);
+
/////////////////////////////////////////////////////////////////////
//
|