Skip to content

Commit

Permalink
MDL-31823 - Remote hosts users created via mnet enrolments marked as …
Browse files Browse the repository at this point in the history
…confirmed
  • Loading branch information
dmonllao committed Jun 4, 2012
1 parent 4db0616 commit d7eb773
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions enrol/mnet/enrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ public function enrol_user(array $userdata, $courseid) {
$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) {
Expand Down

0 comments on commit d7eb773

Please sign in to comment.