CityOfLosAngeles / angeleno-my-account

App that allows Angeleno Account holders to update their profile, password, MFA, and app consent.
MIT License
1 stars 0 forks source link

Implement Password Reset Flow #46

Closed cbhernan closed 11 months ago

cbhernan commented 1 year ago

Background info

There's a Password Screen that allows users to update their passwords but screen currently does nothing outside of text input validation.

Proposed Solution

Find out what API calls need to be made and implement them so that users can update their password.

cbhernan commented 11 months ago

This is a response I got from an initial password reset attempt, so we know the password requirements the UI should check for.

"details": {
    "description": {
      "rules": [
        {
          "message": "At least %d characters in length",
          "format": [
            8
          ],
          "code": "lengthAtLeast",
          "verified": false
        },
        {
          "message": "Contain at least %d of the following %d types of characters:",
          "code": "containsAtLeast",
          "format": [
            3,
            4
          ],
          "items": [
            {
              "message": "lower case letters (a-z)",
              "code": "lowerCase",
              "verified": true
            },
            {
              "message": "upper case letters (A-Z)",
              "code": "upperCase",
              "verified": false
            },
            {
              "message": "numbers (i.e. 0-9)",
              "code": "numbers",
              "verified": false
            },
            {
              "message": "special characters (e.g. !@#$%^&*)",
              "code": "specialCharacters",
              "verified": false
            }
          ],
          "verified": false
        }
      ],
      "verified": false
    }
  },

Passwords must: