Building basic structure.

This commit is contained in:
Daniel Thee Roperto
2016-08-30 14:35:00 +10:00
parent ec44c25329
commit f6cbd0f828
9 changed files with 683 additions and 34 deletions

View File

@@ -35,32 +35,11 @@ require_once($CFG->libdir . '/authlib.php');
*/
class auth_plugin_outage extends auth_plugin_base
{
public function __construct() {
$this->pluginconfig = 'auth_outage';
$this->authtype = 'outage';
$this->roleauth = 'auth_outage';
$this->component = 'auth_outage';
$this->errorlogtag = '[AUTH_OUTAGE]';
$this->config = get_config('auth_outage');
}
/**
* This is the primary method that is used by the authenticate_user_login()
* function in moodlelib.php.
*
* This method should return a boolean indicating
* whether or not the username and password authenticate successfully.
*
* Returns true if the username and password work and false if they are
* wrong or don't exist.
*
* @param string $username The username (with system magic quotes)
* @param string $password The password (with system magic quotes)
*
* @return bool Authentication success or failure.
* Do not authenticate users.
* @return bool False
*/
public function user_login($username, $password) {
// Do not authenticate users.
return false;
}
}