MDL-31823 - Remote hosts users created via mnet enrolments marked as confirmed
authorDavid Monllaó <david.monllao@gmail.com>
Wed, 29 Feb 2012 13:21:11 +0000 (14:21 +0100)
committerDavid Monllaó <david.monllao@gmail.com>
Mon, 4 Jun 2012 08:39:41 +0000 (10:39 +0200)
enrol/mnet/enrol.php

index c09cd7e..2fb785c 100644 (file)
@@ -146,6 +146,7 @@ class enrol_mnet_mnetservice_enrol {
             $user = mnet_strip_user((object)$userdata, mnet_fields_to_import($client));
             $user->mnethostid = $client->id;
             $user->auth = 'mnet';
+            $user->confirmed = 1;
             try {
                 $user->id = $DB->insert_record('user', $user);
             } catch (Exception $e) {