44 if ( isset( $params[
'blockDisablesLogin'] ) ) {
45 $this->blockDisablesLogin = (bool)$params[
'blockDisablesLogin'];
50 if ( $this->blockDisablesLogin ===
null ) {
51 $this->blockDisablesLogin = $this->config->get(
'BlockDisablesLogin' );
62 if ( !$this->blockDisablesLogin ) {
64 } elseif ( $user->getBlock() ) {
66 new \
Message(
'login-userblocked', [ $user->getName() ] )
78 $block = $user->isBlockedFromCreateAccount();
82 $language = \RequestContext::getMain()->getUser()->isSafeToLoad() ?
83 \RequestContext::getMain()->getLanguage() :
86 $ip = $this->manager->getRequest()->getIP();
88 return StatusValue::newFatal(
89 $formatter->getMessage( $block, $user, $language, $ip )
92 return StatusValue::newGood();
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.