namespace MediaWiki\Auth;
use Config;
+use MediaWiki\Block\DatabaseBlock;
use MediaWiki\MediaWikiServices;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface;
/** Log in with an existing (not necessarily local) user */
const ACTION_LOGIN = 'login';
/** Continue a login process that was interrupted by the need for user input or communication
- * with an external provider */
+ * with an external provider
+ */
const ACTION_LOGIN_CONTINUE = 'login-continue';
/** Create a new user */
const ACTION_CREATE = 'create';
/** Continue a user creation process that was interrupted by the need for user input or
- * communication with an external provider */
+ * communication with an external provider
+ */
const ACTION_CREATE_CONTINUE = 'create-continue';
/** Link an existing user to a third-party account */
const ACTION_LINK = 'link';
/** Continue a user linking process that was interrupted by the need for user input or
- * communication with an external provider */
+ * communication with an external provider
+ */
const ACTION_LINK_CONTINUE = 'link-continue';
/** Change a user's credentials */
const ACTION_CHANGE = 'change';
return array_keys( $ret );
}
- /**@}*/
+ /** @} */
/**
* @name Authentication data changing
}
}
- /**@}*/
+ /** @} */
/**
* @name Account creation
$block->getByName()
];
- if ( $block->getType() === \Block::TYPE_RANGE ) {
+ if ( $block->getType() === DatabaseBlock::TYPE_RANGE ) {
$errorMessage = 'cantcreateaccount-range-text';
$errorParams[] = $this->getRequest()->getIP();
} else {
return Status::newGood();
}
- /**@}*/
+ /** @} */
/**
* @name Account linking
}
}
- /**@}*/
+ /** @} */
/**
* @name Information methods
return null;
}
- /**@}*/
+ /** @} */
/**
* @name Internal methods
self::$instance = null;
}
- /**@}*/
+ /** @} */
}