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 6b1280f163ca47ba8a6ca549c92d80dd16a3aefe 1 parent 3286ed2
@dmonllao dmonllao authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.