aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-12-02 15:13:30 +0300
committerValentin Popov <info@valentineus.link>2017-12-02 15:13:30 +0300
commitb062def50ab79f8bbf50f6af981d2837bd6f5452 (patch)
treea8f2e01c0d2f36c8b09063bd56cbc38cf26f6e0f
parent5bb90c813ae7ed1a0184809c412d4973fa7ef41b (diff)
downloadauth_token-0.1.0.tar.xz
auth_token-0.1.0.zip
Correcting code analyzer errorsv0.1.0
-rw-r--r--auth.php4
-rw-r--r--lang/en/auth_token.php4
-rw-r--r--settings.php4
3 files changed, 6 insertions, 6 deletions
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 <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);
}
diff --git a/lang/en/auth_token.php b/lang/en/auth_token.php
index 4c4525c..60e6757 100644
--- a/lang/en/auth_token.php
+++ b/lang/en/auth_token.php
@@ -8,11 +8,11 @@
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
-// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
+// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component "auth_token", language "en".
diff --git a/settings.php b/settings.php
index 441dc60..fd9d1f9 100644
--- a/settings.php
+++ b/settings.php
@@ -8,11 +8,11 @@
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
-// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
+// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Admin settings and defaults.