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

New password email shows user's full name when language string references firstname

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.2, 3.6
    • Fix Version/s: None
    • Component/s: User management
    • Labels:

      Description

      String 'newusernewpasswordtext' in lang/en/moodle.php references $a->firstname.  This string is used for sending new password emails out to new users in lib/moodlelib.php at \setnew_password_and_mail.

      The issue is that the logic is setting firstname to the user's fullname instead of their first name.

      To reproduce the issue, create new user ensuring that 'Generate password and notify user' is checked.  Then, verify the contents of the email.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ultracrystal Eric Richer
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: