Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-13224

Password reset does not allow to check for lower case characters

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 11.0.0, 11.0.1, 11.0.2, 11.0.3, 12.0.0, 12.0.1, 12.0.2, 12.0.3, 12.0.4, 13.0.0, 13.5.0, 13.5.1, 13.5.2, 14.0.0, 14.1.0, 14.1.1, 14.5.0, 14.5.1, 6.0.0, 6.0.0.1
    • Fix Version/s: None
    • Component/s: XUI
    • Labels:
      None
    • Support Ticket IDs:

      Description

      Bug description

      Password reset does not allow to check for a minimum occurrence of lower case characters.

      How to reproduce the issue

      Details steps outlining how to recreate the issue (remove this text)

      1. Configure AM
      2. Configure Self Services is root realm
      3. Perform password reset

       

      Expected behaviour
      If no lower-cased character is used an error should occur
      
      Current behaviour
      password with all uper-case characters can be entered
      

      Code analysis

      forgerock-ui/forgerock-ui-commons/src/main/js/config/validators/CommonValidators.js
      ...
      
      
      
      "atLeastXLowerLetters": {
      "name": "Minimum occurrence of lowercase letter characters in string",
      "dependencies": [],
      "validator": function validator(el, input, callback) {
      var v = input.val(),
      minLower = input.attr('atLeastXLowerLetters'),
      foundLower = v.match(/[(a-z)]/g);
      if (!foundLower || foundLower.length < minLower) {
      callback([$.t("common.form.validation.AT_LEAST_X_LOWER_LETTERS", { numLower: minLower })]);
      } else {
      callback();
      }
      }
      }
      

      should be added.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bthalmayr Bernhard Thalmayr
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: