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

reset_password's password policy error contains div tags

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.5, 3.1.1
    • Fix Version/s: 3.0.6, 3.1.2
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide
      1. Login as admin
      2. Go to Site administration ► Security ► Site policies
      3. Enable 'Password policy'
      4. Save the changes.
      5. Open a terminal and go to the root of your Moodle installation.
      6. Run the following command:

        php admin/cli/reset_password.php
        

      7. Enter a valid user name when prompted.
      8. When prompted for the password, enter "test".
      9. Check the error message.
        • Confirm that it has no div tags or any HTML tags.
        • Confirm that each error message is shown on a new line.
      Show
      Login as admin Go to Site administration ► Security ► Site policies Enable 'Password policy' Save the changes. Open a terminal and go to the root of your Moodle installation. Run the following command: php admin/cli/reset_password.php Enter a valid user name when prompted. When prompted for the password, enter " test ". Check the error message. Confirm that it has no div tags or any HTML tags. Confirm that each error message is shown on a new line.
    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-55206-master

      Description

      The text for the CLI command reset_password.php are not localised. Plus, if password policy is turned on, the error message being shown has HTML tags in it like below:

      <div>Passwords must be at least 8 characters long.</div><div>Passwords must have at least 1 digit(s).</div><div>Passwords must have at least 1 upper case letter(s).</div><div>Passwords must have at least 1 non-alphanumeric character(s) such as as *, -, or #.</div>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jpataleta Jun Pataleta
              Reporter:
              jpataleta Jun Pataleta
              Peer reviewer:
              Jake Dallimore
              Integrator:
              Dan Poltawski
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Sep/16