-
Improvement
-
Resolution: Deferred
-
Minor
-
None
-
3.5.9, 3.6.7, 3.7.3
-
MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
-
MDL-67267-master_pass_all_user_data_to_email_string -
At the moment, when creating the email content for some email types such as reset password, some user data is sent (firstname, username etc).
When overriding these strings to create a custom email message, we are limited by what data is passed by default for the email content.
I propose that the entire user object is passed to the string, in order to add flexibility when creating the lang string.
Example- Reset password email: https://github.com/moodle/moodle/blob/master/lib/moodlelib.php#L6388
I would appreciate help compiling a list of which emails could benefit from this. I found these in the same neighbourhood in moodlelib.php.
Emails to improve:
reset_password_and_mail
setnew_password_and_mail
send_confirmation_email
send_password_change_confirmation_email
send_password_change_info
- has been marked as being related by
-
MDL-66112 Change username to email in custom language string
- Closed