MDL-60116 lang: Add username in emailpasswordchangeinfo

This commit is contained in:
Grzegorz Ziółek 2017-09-13 13:01:02 +02:00
parent 9a316f3367
commit 57bdf3b02d
2 changed files with 2 additions and 1 deletions

View File

@ -660,7 +660,7 @@ If you continue to have difficulty, contact the site administrator.';
$string['emailpasswordchangeinfo'] = 'Hi {$a->firstname},
Someone (probably you) has requested a new password for your
account on \'{$a->sitename}\'.
account \'{$a->username}\' on \'{$a->sitename}\'.
To change your password, please go to the following web address:

View File

@ -6285,6 +6285,7 @@ function send_password_change_info($user) {
$data = new stdClass();
$data->firstname = $user->firstname;
$data->lastname = $user->lastname;
$data->username = $user->username;
$data->sitename = format_string($site->fullname);
$data->admin = generate_email_signoff();