45 if ( isset( $params[
'blockDisablesLogin'] ) ) {
46 $this->blockDisablesLogin = (bool)$params[
'blockDisablesLogin'];
53 if ( $this->blockDisablesLogin ===
null ) {
54 $this->blockDisablesLogin = $this->config->get(
'BlockDisablesLogin' );
65 if ( !$this->blockDisablesLogin ) {
67 } elseif ( $user->getBlock() ) {
69 new \
Message(
'login-userblocked', [ $user->getName() ] )
81 $block = $user->isBlockedFromCreateAccount();
85 $language = \RequestContext::getMain()->getUser()->isSafeToLoad() ?
86 \RequestContext::getMain()->getLanguage() :
89 $ip = $this->manager->getRequest()->getIP();
91 return StatusValue::newFatal(
92 $formatter->getMessage( $block, $user, $language, $ip )
95 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.
Interface for configuration instances.