Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-17808

Use users lastname in password change confirmation mails

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.9.5
    • 1.9.3
    • Authentication, Language
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE
    • Easy

      Hello

      In some countries, for example Germany where I am from, it's necessary to include the users lastname during correspondence - for example mails. The maintainers of the German language pack have included the necessary variables in the mail text ( $string['emailpasswordconfirmation'] = 'Guten Tag $a->firstname $a->lastname ). As this did not solve the problem and still only the first name was included into the mails, I looked up the code that is responsible for sending the mails. There I found the reason and was able to fix it for me.

      I'd suggest to include this in the main code of Moodle. The fix would be in the function send_password_change_confirmation_mail() in file /lib/moodlelib.php at line 4469. Here it would be fine to include the line:

      $data->lastname = $user->lastname;

      At least for me it would be fine to have this in the main-code so I do not have to patch the code after every update .

      Andreas

            skodak Petr Skoda
            grupp Andreas Grupp
            Tim Hunt Tim Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.