Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-1263

Change Password Regular Expression

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Could
    • Resolution: Fixed
    • None
    • OpenMRS 1.6.0
    • None
    • None

    Description

      Burke's love of regular expressions produced this for password validation:

      // Password must contain at least one digit, one lowercase and one uppercase character
      Pattern pattern = Pattern.compile("(?-i)(?-m)(?-s)^(?=.\{5,99\}$)(?=.*?[0-9])(?=.*?[a-z])(?=.*?[A-Z]).*$");
      

      See the mailing list discussion: http://n2.nabble.com/Re%3A--8765--openmrs-trunk%3A-Added-ability-to-have-special-characters-in-passwords-again----1592-td3162085.html#a3162085

      This was in reaction to TRAC-1592

      Gliffy Diagrams

        Attachments

          Activity

            People

              mseaton Mike Seaton
              bwolfe Ben Wolfe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: