Skip to content

Commit

Permalink
Correcting code analyzer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
valentineus committed Dec 2, 2017
1 parent 5bb90c8 commit b062def
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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" <[email protected]>
Expand Down Expand Up @@ -60,7 +60,7 @@ public function auth_plugin_token() {
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);
}

Expand Down
4 changes: 2 additions & 2 deletions lang/en/auth_token.php
Original file line number Diff line number Diff line change
Expand Up @@ -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".
Expand Down
4 changes: 2 additions & 2 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b062def

Please sign in to comment.