Permalink
Browse files

MDL-31823 - Remote hosts users created via mnet enrolments marked as …

…confirmed
  • Loading branch information...
1 parent fbbb4cc commit e313d1695b627b037ed008f431047fccb6c4794b @dmonllao dmonllao committed Feb 29, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 enrol/mnet/enrol.php
View
@@ -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) {

0 comments on commit e313d16

Please sign in to comment.