From: Bryan Tong Minh Date: Sat, 31 May 2008 08:54:45 +0000 (+0000) Subject: Add wpSkipCookieCheck to allow bots to skip the cookie check X-Git-Tag: 1.31.0-rc.0~47272 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=29c73e82652acd93847c3cd0ca34b095fd2116ef;p=lhc%2Fweb%2Fwiklou.git Add wpSkipCookieCheck to allow bots to skip the cookie check --- diff --git a/includes/SpecialUserlogin.php b/includes/SpecialUserlogin.php index 58b1280f18..70323f21df 100644 --- a/includes/SpecialUserlogin.php +++ b/includes/SpecialUserlogin.php @@ -36,7 +36,7 @@ class LoginForm { var $mName, $mPassword, $mRetype, $mReturnTo, $mCookieCheck, $mPosted; var $mAction, $mCreateaccount, $mCreateaccountMail, $mMailmypassword; - var $mLoginattempt, $mRemember, $mEmail, $mDomain, $mLanguage; + var $mLoginattempt, $mRemember, $mEmail, $mDomain, $mLanguage, $mSkipCookieCheck; /** * Constructor @@ -63,6 +63,7 @@ class LoginForm { $this->mAction = $request->getVal( 'action' ); $this->mRemember = $request->getCheck( 'wpRemember' ); $this->mLanguage = $request->getText( 'uselang' ); + $this->mSkipCookieCheck = $request->getCheck( 'wpSkipCookieCheck' ); if( $wgEnableEmail ) { $this->mEmail = $request->getText( 'wpEmail' ); @@ -501,7 +502,7 @@ class LoginForm { } $wgUser->setCookies(); - if( $this->hasSessionCookie() ) { + if( $this->hasSessionCookie() || $this->mSkipCookieCheck ) { /* Replace the language object to provide user interface in correct * language immediately on this first page load. */