mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 03:16:42 +02:00
Merge branch 'MOODLE_35_STABLE_MDL_56093' of https://github.com/eledia/moodle into MOODLE_35_STABLE
This commit is contained in:
commit
8fc16d9e6a
1 changed files with 6 additions and 0 deletions
|
@ -473,6 +473,12 @@ class auth_plugin_db extends auth_plugin_base {
|
|||
set_user_preference('auth_forcepasswordchange', 1, $id);
|
||||
set_user_preference('create_password', 1, $id);
|
||||
}
|
||||
|
||||
// Save custom profile fields here(MDL-56093).
|
||||
require_once($CFG->dirroot . '/user/profile/lib.php');
|
||||
$user->id = $id;
|
||||
profile_save_data($user);
|
||||
|
||||
// Make sure user context is present.
|
||||
context_user::instance($id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue