Skip to content
Browse files

MDL-32204 MNet: set auth method to mnet for users enrolled remotely

  • Loading branch information...
1 parent efac2d2 commit 47f1ee8e6ff83ef21a721219b951fdc3e0e03e82 @wiktorwandachowicz wiktorwandachowicz committed with mudrd8mz May 15, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 enrol/mnet/enrol.php
View
1 enrol/mnet/enrol.php
@@ -145,6 +145,7 @@ public function enrol_user(array $userdata, $courseid) {
// users {@link http://tracker.moodle.org/browse/MDL-21327}
$user = mnet_strip_user((object)$userdata, mnet_fields_to_import($client));
$user->mnethostid = $client->id;
+ $user->auth = 'mnet';
try {
$user->id = $DB->insert_record('user', $user);
} catch (Exception $e) {

0 comments on commit 47f1ee8

Please sign in to comment.
Something went wrong with that request. Please try again.