45 if ( isset( $params[
'blockDisablesLogin'] ) ) {
46 $this->blockDisablesLogin = (bool)$params[
'blockDisablesLogin'];
51 if ( $this->blockDisablesLogin ===
null ) {
63 if ( !$this->blockDisablesLogin ) {
65 } elseif ( $user->getBlock() ) {
67 new \
Message(
'login-userblocked', [ $user->getName() ] )
79 $block = $user->isBlockedFromCreateAccount();
83 $language = \RequestContext::getMain()->getUser()->isSafeToLoad() ?
84 \RequestContext::getMain()->getLanguage() :
87 $ip = $this->manager->getRequest()->getIP();
89 return StatusValue::newFatal(
90 $formatter->getMessage( $block, $user, $language, $ip )
93 return StatusValue::newGood();
A class containing constants representing the names of configuration variables.
const BlockDisablesLogin
Name constant for the BlockDisablesLogin setting, for use with Config::get()
The Message class deals with fetching and processing of interface message into a variety of formats.
Generic operation result class Has warning/error list, boolean status and arbitrary value.