(bug 8440) Add API support for new blocking flag, also fix defaults so anywhere else...
[lhc/web/wiklou.git] / includes / AuthPlugin.php
index 2ad137e..df2c019 100644 (file)
@@ -230,7 +230,7 @@ class AuthPlugin {
         * @param $autocreate bool True if user is being autocreated on login
         * @public
         */
-       function initUser( $user, $autocreate=false ) {
+       function initUser( &$user, $autocreate=false ) {
                # Override this to do something.
        }
 
@@ -241,6 +241,11 @@ class AuthPlugin {
        function getCanonicalName( $username ) {
                return $username;
        }
+       
+       /**
+        * Adds any functionality to a User object in context of the auth system
+        */
+       function setUserCallbacks( $user, &$callbacks ) {
+               return true;
+       }
 }
-
-