Merge branch 'MDL-53401-master' of git://github.com/lameze/moodle

This commit is contained in:
David Monllao 2016-03-30 09:12:25 +08:00
commit 11e60abf75

View File

@ -302,7 +302,7 @@ class auth_plugin_mnet extends auth_plugin_base {
$remoteuser->firstaccess = 0;
$remoteuser->confirmed = 1;
$remoteuser->id = $DB->insert_record('user', $remoteuser);
$remoteuser->id = user_create_user($remoteuser, false);
$firsttime = true;
$localuser = $remoteuser;
}