diff options
author | Valentin Popov <info@valentineus.link> | 2017-12-02 15:13:30 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-12-02 15:13:30 +0300 |
commit | b062def50ab79f8bbf50f6af981d2837bd6f5452 (patch) | |
tree | a8f2e01c0d2f36c8b09063bd56cbc38cf26f6e0f /auth.php | |
parent | 5bb90c813ae7ed1a0184809c412d4973fa7ef41b (diff) | |
download | auth_token-b062def50ab79f8bbf50f6af981d2837bd6f5452.tar.xz auth_token-b062def50ab79f8bbf50f6af981d2837bd6f5452.zip |
Correcting code analyzer errorsv0.1.0
Diffstat (limited to 'auth.php')
-rw-r--r-- | auth.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,7 +15,7 @@ // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** - * Authorization by tokens. + * Authentication Plugin: Authorization by tokens. * * @package auth_token * @copyright 2017 "Valentin Popov" <info@valentineus.link> @@ -60,7 +60,7 @@ class auth_plugin_token extends auth_plugin_base { public function user_login($username, $password) { global $CFG, $DB; - if ($user = $DB->get_record("user", array("username" => $username, "mnethostid" => $GFG->mnet_localhost_id))) { + if ($user = $DB->get_record("user", array("username" => $username, "mnethostid" => $CFG->mnet_localhost_id))) { return validate_internal_user_password($user, $password); } |