Skip to content
Browse files

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

…confirmed
  • Loading branch information...
1 parent 3286ed2 commit 6b1280f163ca47ba8a6ca549c92d80dd16a3aefe @dmonllao dmonllao committed Feb 29, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 enrol/mnet/enrol.php
View
1 enrol/mnet/enrol.php
@@ -315,6 +315,7 @@ function enrol_user($user, $courseid) {
$userrecord->firstname = addslashes($user['firstname']);
$userrecord->lastname = addslashes($user['lastname']);
$userrecord->mnethostid = $MNET_REMOTE_CLIENT->id;
+ $userrecord->confirmed = 1;
if ($userrecord->id = insert_record('user', $userrecord)) {
$userrecord = get_record('user','id', $userrecord->id);

0 comments on commit 6b1280f

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