Author: scott
Description:
The AutoAuthenticate hook doesn't pass the $user entry by reference, this makes
it nigh impossible to auto create a user if one doesn't exist.
- includes/StubObjectold.php
+++ includes/StubObject.php
@@ -121,6 +121,6 @@
$user->setLoaded( true );
} else {
$user = User::loadFromSession();
-wfRunHooks('AutoAuthenticate',array($user));
+wfRunHooks('AutoAuthenticate',array(&$user));
}
return $user;
With the above change the User object can be changed to a valid user if it
didn't exist.
Version: 1.8.x
Severity: normal
OS: Linux