mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
fix for MDL-9983, trigger certain events out of the core to modules
This commit is contained in:
parent
2f338ab5b0
commit
a160cf0b17
4 changed files with 12 additions and 10 deletions
|
@ -68,6 +68,12 @@
|
|||
|
||||
$strpasswordchanged = get_string('passwordchanged');
|
||||
|
||||
// MDL-9983
|
||||
$eventdata = new object();
|
||||
$eventdata -> user = $USER;
|
||||
$eventdata -> newpassword = $data -> newpassword1;
|
||||
events_trigger('password_changed', $eventdata);
|
||||
|
||||
add_to_log($course->id, 'user', 'change password', "view.php?id=$USER->id&course=$course->id", "$USER->id");
|
||||
|
||||
$fullname = fullname($USER, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue