* Let Lockout extension use this case for a proper error message
const ABORTED = 8;
const CREATE_BLOCKED = 9;
const THROTTLED = 10;
const ABORTED = 8;
const CREATE_BLOCKED = 9;
const THROTTLED = 10;
+ const USER_BLOCKED = 11;
var $mName, $mPassword, $mRetype, $mReturnTo, $mCookieCheck, $mPosted;
var $mAction, $mCreateaccount, $mCreateaccountMail, $mMailmypassword;
var $mName, $mPassword, $mRetype, $mReturnTo, $mCookieCheck, $mPosted;
var $mAction, $mCreateaccount, $mCreateaccountMail, $mMailmypassword;
case self::THROTTLED:
$this->mainLoginForm( wfMsg( 'login-throttled' ) );
break;
case self::THROTTLED:
$this->mainLoginForm( wfMsg( 'login-throttled' ) );
break;
+ case self::USER_BLOCKED:
+ $this->mainLoginForm( wfMsg( 'login-userblocked' ) );
+ break;
default:
throw new MWException( "Unhandled case value" );
}
default:
throw new MWException( "Unhandled case value" );
}
'nosuchusershort' => 'There is no user by the name "<nowiki>$1</nowiki>".
Check your spelling.',
'nouserspecified' => 'You have to specify a username.',
'nosuchusershort' => 'There is no user by the name "<nowiki>$1</nowiki>".
Check your spelling.',
'nouserspecified' => 'You have to specify a username.',
+'login-userblocked' => 'This user is blocked. Login not allowed.',
'wrongpassword' => 'Incorrect password entered.
Please try again.',
'wrongpasswordempty' => 'Password entered was blank.
'wrongpassword' => 'Incorrect password entered.
Please try again.',
'wrongpasswordempty' => 'Password entered was blank.
'nosuchuser',
'nosuchusershort',
'nouserspecified',
'nosuchuser',
'nosuchusershort',
'nouserspecified',
'wrongpassword',
'wrongpasswordempty',
'passwordtooshort',
'wrongpassword',
'wrongpasswordempty',
'passwordtooshort',