images, not horizontally.
* Patch from LeonWP: added UploadForm:BeforeProcessing hook in SpecialUpload.php
* Add AuthPluginSetup hook to override $wgAuth after configuration
-* (bug 1331) Add "next page" link to bottom of Special:Allpages in chunk mode
+* Fix regression in authentication hook auto-creation on login
== Languages updated ==
* @return User object.
* @private
*/
- function &initUser( &$u ) {
+ function initUser( $u ) {
$u->addToDatabase();
$u->setPassword( $this->mPassword );
$u->setEmail( $this->mEmail );
$wgAuth->initUser( $u );
$u->setOption( 'rememberpassword', $this->mRemember ? 1 : 0 );
+ $u->saveSettings();
return $u;
}
/**
+ * Internally authenticate the login request.
+ *
+ * This may create a local account as a side effect if the
+ * authentication plugin allows transparent local account
+ * creation.
+ *
* @public
*/
-
- function authenticateUserData()
- {
+ function authenticateUserData() {
global $wgUser, $wgAuth;
if ( '' == $this->mName ) {
return self::NO_NAME;
*/
if ( $wgAuth->autoCreate() && $wgAuth->userExists( $u->getName() ) ) {
if ( $wgAuth->authenticate( $u->getName(), $this->mPassword ) ) {
- $u =& $this->initUser( $u );
+ $u = $this->initUser( $u );
} else {
return self::WRONG_PLUGIN_PASS;
}
if (!$u->checkPassword( $this->mPassword )) {
return '' == $this->mPassword ? self::EMPTY_PASS : self::WRONG_PASS;
- }
- else
- {
+ } else {
$wgAuth->updateUser( $u );
$wgUser = $u;