diff --git a/auth/mnet/auth.php b/auth/mnet/auth.php index 6490a7f7927..11ddba2ce44 100644 --- a/auth/mnet/auth.php +++ b/auth/mnet/auth.php @@ -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; }