From: Yuri Astrakhan Date: Sat, 23 Sep 2006 15:55:51 +0000 (+0000) Subject: * Moved session saving code from processLogin() to authenticateUserData() for better... X-Git-Tag: 1.31.0-rc.0~55740 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=80dcd9af3a49f7b357c0a02ed0eb449c15e94b7e;p=lhc%2Fweb%2Fwiklou.git * Moved session saving code from processLogin() to authenticateUserData() for better reuse. --- diff --git a/includes/SpecialUserlogin.php b/includes/SpecialUserlogin.php index 65b66e36ea..9dbfbc3961 100644 --- a/includes/SpecialUserlogin.php +++ b/includes/SpecialUserlogin.php @@ -352,6 +352,11 @@ class LoginForm { { $wgAuth->updateUser( $u ); $wgUser = $u; + + # We've verified now, update the real record + $wgUser->setOption( 'rememberpassword', $this->mRemember ? 1 : 0 ); + $wgUser->setCookies(); + $wgUser->saveSettings(); return AuthSuccess; } } @@ -362,12 +367,6 @@ class LoginForm { switch ($this->authenticateUserData()) { case (AuthSuccess): - # We've verified now, update the real record - # - $wgUser->setOption( 'rememberpassword', $this->mRemember ? 1 : 0 ); - $wgUser->setCookies(); - $wgUser->saveSettings(); - if( $this->hasSessionCookie() ) { return $this->successfulLogin( wfMsg( 'loginsuccess', $wgUser->getName() ) ); } else {