Skip to content

Cognito User Pool password length error message should display user pool password length requirement #2370

@BillBunting

Description

@BillBunting

Which AWS Services is the feature request for?
Cognito User Pools with AWSMobileClient DropIn UI

Is your feature request related to a problem? Please describe.
Users have reported difficulty signing up for our app because they receive inaccurate or insufficient feedback from the DropIn UI sign up screen regarding password length requirements.

  • Upon entering a 5 character password or less, the UI returns the error: "Sign up failed. Password should have 6 or more characters." However, the User Pool minimum password length is set to 8. Users are incorrectly told the password length is six.
  • Users that enter 6 or 7 character passwords, see a dialog "Sign Up failed. Password did not conform with policy. Password not long enough".

Describe the solution you'd like

  • When a user enters a password less than the User Pool minimum password length, a dialog should inform them of the password length required by the user pool (not be hardcoded to 6)
  • Users should not be told the minimum length is 6 (unless it actually is 6). (remove this validation message)

Here is the code to change:

       if (password.length() < 6) {
            showError(getString(R.string.password_length_validation_failed));
            return;
        }

found at

Metadata

Metadata

Assignees

Labels

feature-requestRequest a new featuregood first issueGood for newcomersmobile clientIssues with AWS Mobile's client-side Cognito wrapper

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions