-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
49 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,19 +14,24 @@ | |
// You should have received a copy of the GNU General Public License | ||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
|
||
defined('MOODLE_INTERNAL') || die(); | ||
require_once("$CFG->libdir/formslib.php"); | ||
|
||
/** | ||
* Master Password Form | ||
* | ||
* @package auth_basic | ||
* @copyright 2018 Nathan Nguyen <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
|
||
defined('MOODLE_INTERNAL') || die(); | ||
require_once("$CFG->libdir/formslib.php"); | ||
|
||
class savepassword extends moodleform { | ||
|
||
/** | ||
* Form definition. | ||
* | ||
* @return void | ||
*/ | ||
protected function definition() { | ||
$mform = $this->_form; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,13 +13,6 @@ | |
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
/** | ||
* Privacy Subsystem implementation for auth_basic. | ||
* | ||
* @package auth_basic | ||
* @copyright 2018 Olivier SECRET <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
|
||
namespace auth_basic\privacy; | ||
|
||
|
@@ -33,6 +26,13 @@ | |
use core_privacy\local\request\userlist; | ||
use core_privacy\local\request\writer; | ||
|
||
/** | ||
* Privacy Subsystem implementation for auth_basic. | ||
* | ||
* @package auth_basic | ||
* @copyright 2018 Olivier SECRET <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class provider implements | ||
\core_privacy\local\metadata\provider, | ||
\core_privacy\local\request\core_userlist_provider, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,19 +13,19 @@ | |
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
/** | ||
* Base class for unit tests for auth_basic. | ||
* | ||
* @package auth_basic | ||
* @category test | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
|
||
defined('MOODLE_INTERNAL') || die(); | ||
|
||
global $CFG; | ||
require_once($CFG->dirroot.'/auth/basic/auth.php'); | ||
|
||
/** | ||
* Base class for unit tests for auth_basic. | ||
* @package auth_basic | ||
* @category test | ||
* @copyright Brendan Heywood <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class auth_basic_test extends advanced_testcase { | ||
/** @var auth_plugin_basic Keeps the authentication plugin. */ | ||
protected $authplugin; | ||
|