Fix Moodle Code Checker

This commit is contained in:
Valentin Popov 2017-10-17 12:05:25 +04:00
parent 1e95ee0ee8
commit 758332d635

View File

@ -134,9 +134,9 @@ class auth_plugin_link extends auth_plugin_base {
$username = htmlspecialchars($_REQUEST['username']);
$password = htmlspecialchars($_REQUEST['password']);
// User existence check
// User existence check.
if ($user = $DB->get_record('user', array( 'username' => $username) )) {
// Verification of authorization data
// Verification of authorization data.
if (validate_internal_user_password($user, $password)) {
complete_user_login($user);
$this->redirect_user();