. /** * This plugin allows for an outage window to be configured * and then optionally allows only a subset of IPs to connect, * it also shows an outage notification to users. * * @package auth_outage * @author Marcus Boon * @license http://www.gnu.org/copyleft/gpl.html GNU Public License */ use auth_outage\local\outagelib; defined('MOODLE_INTERNAL') || die(); require_once($CFG->libdir.'/authlib.php'); /** * Class auth_plugin_outage */ class auth_plugin_outage extends auth_plugin_base { /** * Constructor. */ public function __construct() { $this->authtype = 'outage'; } /** * @param string $username Not used in this plugin. * @param string $password Not used in this plugin. * @return bool False * @SuppressWarnings("unused") */ public function user_login($username, $password) { return false; } /** * Login page hook. */ public function loginpage_hook() { outagelib::inject(); } }