. /** * auth_plugin_outage class. * * 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 * @author Daniel Thee Roperto * @copyright 2016 Catalyst IT * @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'); /** * auth_plugin_outage class. * * 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 * @author Daniel Thee Roperto * @copyright 2016 Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU Public License */ class auth_plugin_outage extends auth_plugin_base { /** * Constructor. */ public function __construct() { $this->authtype = 'outage'; } /** * Always returns false (password wrong or user does not exist). * * @inheritdoc PHPMD will not warn about unused parameters if overriding. * @param string $username Not used in this plugin. * @param string $password Not used in this plugin. * @return bool False */ public function user_login($username, $password) { return false; } }