mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
Merge branch 'MDL-32204-mnet-auth' of git://github.com/mudrd8mz/moodle
This commit is contained in:
commit
cba59b3d83
1 changed files with 1 additions and 0 deletions
|
@ -145,6 +145,7 @@ class enrol_mnet_mnetservice_enrol {
|
||||||
// users {@link http://tracker.moodle.org/browse/MDL-21327}
|
// users {@link http://tracker.moodle.org/browse/MDL-21327}
|
||||||
$user = mnet_strip_user((object)$userdata, mnet_fields_to_import($client));
|
$user = mnet_strip_user((object)$userdata, mnet_fields_to_import($client));
|
||||||
$user->mnethostid = $client->id;
|
$user->mnethostid = $client->id;
|
||||||
|
$user->auth = 'mnet';
|
||||||
try {
|
try {
|
||||||
$user->id = $DB->insert_record('user', $user);
|
$user->id = $DB->insert_record('user', $user);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue