Carlton B wrote:
It doesn't
look like that should be possible, though, unless your
plugin's initUser method (which is called from LoginForm's to optionally
modify the user object before it's saved) looks something like this:
function initUser( &$u ) {
$u = 'This will break';
}
If you're modifying the user object in that method, make sure you're not
replacing it with a non-object.
Actually I didn't override this method at all. However, looking at the
code, that is precisely the problem. SpecialUserlogin.php requires
initUser() to return a reference to the user object.
No, I checked this carefully when trying to reproduce your problem (and
successfully doing it only with the above code) -- it requires
**LoginForm::initUser** to return a reference. **AuthPlugin::initUser**
is a different function and doesn't return anything, and its return
value if any is never used.
Yeah, that's lame-looking.
-- brion vibber (brion @
pobox.com)