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

reset_password's password policy error contains div tags

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.5, 3.1.1
    • 3.0.6, 3.1.2
    • Administration
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MDL-55206-master
    • 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.

    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

              jpataleta Jun Pataleta
              jpataleta Jun Pataleta
              Jake Dallimore Jake Dallimore
              Dan Poltawski Dan Poltawski
              Mark Nelson Mark Nelson
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Sep/16