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

Make generate_password() respect password complexity policies (with patch)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9.1
    • Component/s: Authentication
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Right now generate_password() creates passwords based on lib/wordlist.txt by simply concatenating two random words with a single character. If we have specified a password complexity policy in our site, these new password might not comply with that policy (in fact, most probably won't).

      The attached patch adds support for complex password generation, complying with the password policy settings currently in effect. It applies cleanly on both 1.9 and HEAD.

      Saludos. Iñaki.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/May/08