mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
for #31876 # Details This PR updates the validation for password requirements to be consistent in all places, and to show more specific error messages when the entered password does not meet the requirements. Previously the `valid_password` helper just returned a boolean indicating whether a password was valid. It now returns an object with `isValid`, `error` and `error_code` so that different types of password issues can be surfaced. This allows us to continue having a single source of truth for password validation, while providing more helpful error messages when a password doesn't meet our criteria. # Checklist for submitter If some of the following don't apply, delete the relevant line. - [X] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files) for more information. ## Testing - [X] Added/updated automated tests - [X] QA'd all new/changed functionality manually - [X] First time setup (adding the initial user) - [X] Add user in settings -> manage users - [X] Changer user password in settings -> manage users - [X] Password reset form |
||
|---|---|---|
| .. | ||
| ChangePasswordForm.jsx | ||
| ChangePasswordForm.tests.jsx | ||
| index.js | ||
| validate.js | ||