Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…confirmed
  • Loading branch information...
commit 92bf1836d0013d8568bfeabe7bb07a406903c30f 1 parent a6dfc10
David Monllaó dmonllao authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  enrol/mnet/enrol.php
1  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) {
Please sign in to comment.
Something went wrong with that request. Please try again.