Repository navigation
fix: run the password field's validation on reset password (3.x) - #18980
Merged
nathanlentz merged 4 commits intoOct 23, 2026
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Contributor
📦 esbuild Bundle Analysis for payloadThis analysis was generated by esbuild-bundle-analyzer. 🤖
Largest pathsThese visualization shows top 20 largest paths in the bundle.Meta file: packages/next/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_shared.json, Out file: esbuild/exports/shared.js
Meta file: packages/richtext-lexical/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_shared.json, Out file: esbuild/exports/shared_optimized/index.js
DetailsNext to the size is how much the size has increased or decreased compared with the base branch of this PR.
|
JarrodMFlesch
approved these changes
Oct 23, 2026
nathanlentz
deleted the
nlentz/poss-332-reset-password-field-validation-3x
branch
October 23, 2026 13:36
denolfe
added a commit
that referenced
this pull request
Oct 23, 2026
Backport of #18771 to `3.x`. Adds `.coderabbit.yaml` so CodeRabbit auto-reviews PRs that target `3.x`. ## Root Cause CodeRabbit reads `.coderabbit.yaml` from the PR's branch, not from `main`. The `3.x` branch has no config file. CodeRabbit falls back to the repository UI settings. Those settings skip base branches other than the default branch, so every PR into `3.x` gets a "Review skipped" comment (e.g. #18980). 🤖 Written with AI Co-authored-by: Dan Ribbens <[email protected]>
nathanlentz
added a commit
that referenced
this pull request
Oct 23, 2026
Same fix as #18980 (3.x), ported to `main`. Reset password now runs the collection's `password` field validation, the same as create and update do. Before this change, a `password` field override (such as `minLength: 8` or a custom `validate`) did not apply to resets, so a user could reset their password to `abc`. This is the preferred solution over #18826. That PR only passes `minLength`/`maxLength` through to the hardcoded validator, so a custom `validate` on the `password` field is still skipped. This change runs the field's own `validate` function, which covers both. Fixes #18823
Contributor
|
🚀 This is included in version v3.92.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reset password now runs the collection's
passwordfield validation, the same as create and update do. Before this change, apasswordfield override (such asminLength: 8or a customvalidate) did not apply to resets, so a user could reset their password toabc.Fixes #18823