Correcting code analyzer errors
This commit is contained in:
parent
5bb90c813a
commit
b062def50a
4
auth.php
4
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);
|
||||
}
|
||||
|
||||
|
@ -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".
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user