From b062def50ab79f8bbf50f6af981d2837bd6f5452 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sat, 2 Dec 2017 16:13:30 +0400 Subject: Correcting code analyzer errors --- auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'auth.php') diff --git a/auth.php b/auth.php index 4c426db..6e7bb97 100644 --- a/auth.php +++ b/auth.php @@ -15,7 +15,7 @@ // along with Moodle. If not, see . /** - * Authorization by tokens. + * Authentication Plugin: Authorization by tokens. * * @package auth_token * @copyright 2017 "Valentin Popov" @@ -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); } -- cgit v1.2.3