Fix fatal error in eval.php
[lhc/web/wiklou.git] / includes / AuthPlugin.php
index c7d8448..a3d0837 100644 (file)
@@ -1,6 +1,5 @@
 <?php
 /**
- * @package MediaWiki
  */
 # Copyright (C) 2004 Brion Vibber <brion@pobox.com>
 # http://www.mediawiki.org/
@@ -33,7 +32,6 @@
  * This interface is new, and might change a bit before 1.4.0 final is
  * done...
  *
- * @package MediaWiki
  */
 class AuthPlugin {
        /**
@@ -212,6 +210,18 @@ class AuthPlugin {
                return false;
        }
 
+       /**
+        * Check if a user should authenticate locally if the global authentication fails.
+        * If either this or strict() returns true, local authentication is not used.
+        *
+        * @param $username String: username.
+        * @return bool
+        * @public
+        */
+       function strictUserAuth( $username ) {
+               return false;
+       }
+
        /**
         * When creating a user account, optionally fill in preferences and such.
         * For instance, you might pull the email address or real name from the
@@ -221,9 +231,10 @@ class AuthPlugin {
         * forget the & on your function declaration.
         *
         * @param $user User object.
+        * @param $autocreate bool True if user is being autocreated on login
         * @public
         */
-       function initUser( &$user ) {
+       function initUser( $user, $autocreate=false ) {
                # Override this to do something.
        }
 
@@ -236,4 +247,4 @@ class AuthPlugin {
        }
 }
 
-?>
+