Merge branch 'MDL-58220-master-fix2' of http://github.com/damyon/moodle

This commit is contained in:
Andrew Nicols
2017-04-05 14:43:13 +08:00
+1
View File
@@ -126,6 +126,7 @@ class api {
}
$record->email = $userinfo['email'];
$record->confirmtoken = '';
$record->confirmtokenexpires = 0;
$linkedlogin = new linked_login(0, $record);
return $linkedlogin->create();
}