auth to find the plugin used for login //override if needed } /** * Hook for overriding behavior of logout page. * This method is called from login/logout.php page for all enabled auth plugins. */ function logoutpage_hook() { global $USER; // use $USER->auth to find the plugin used for login global $redirect; // can be used to override redirect after logout //override if needed } /** * Return the properly translated human-friendly title of this auth plugin */ function get_title() { return auth_get_plugin_title($this->authtype); } /** * Get the auth description (from core or own auth lang files) */ function get_description() { $authdescription = get_string("auth_{$this->authtype}description", "auth"); if ($authdescription == "[[auth_{$this->authtype}description]]") { $authdescription = get_string("auth_{$this->authtype}description", "auth_{$this->authtype}"); } return $authdescription; } /** * Returns whether or not the captcha element is enabled, and the admin settings fulfil its requirements. * @abstract Implement in child classes * @return bool */ function is_captcha_enabled() { return false; } } ?>