diff --git a/auth/mnet/auth.php b/auth/mnet/auth.php index 8bd7768b5c7..ec5b3004f80 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; }