Deprecate "max-consecutive" in favor of two new statements: "max-re… - #1255
Merged
Merged
Conversation
…ating" and "max-sequential"
The "consecutive" within "max-consecutive" is ambiguous. It's unclear if anyone means "maximum number of back-to-back
repeated characters" (e.g. "aaa" or "777") or "maximum number of back-to-back characters in a sequence" (e.g. "abc" or
"789"). We're going to fix this by adding "max-repeating" and "max-sequential" and effectively deprecating
"max-consecutive" from the password rules language, but supporting it going forward as an alias to *both*
"max-repeating" and "max-sequential".
max-repeating: Defines the maximum number of identical characters allowed to be back-to-back in a password.
* e.g. "aaa" is valid in `max-repeating: 3`, but not `max-repeating: 2`.
max-sequential: Defines the maximum number of characters adjacent to each other, directional within the ascii lookup
table within ranges "a-z", "A-Z", and "0-9", allowed to be back-to-back in a password.
* e.g. "abc" is valid in `max-sequential: 3`, but not `max-sequential: 2`.
* e.g. "123" is valid in `max-sequential: 3`, but not `max-sequential: 2`.
* e.g. "321" is valid in `max-sequential: 3`, but not `max-sequential: 2`.
* e.g. "cba" is valid in `max-sequential: 3`, but not `max-sequential: 2`.
Apple documentation needs to be updated after this change. I will work on fixing that.
whsieh
approved these changes
Sep 10, 2026
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.
Deprecate "max-consecutive" in favor of two new statements: "max-repeating" and "max-sequential"
The "consecutive" within "max-consecutive" is ambiguous. It's unclear if anyone means "maximum number of back-to-back
repeated characters" (e.g. "aaa" or "777") or "maximum number of back-to-back characters in a sequence" (e.g. "abc" or
"789"). We're going to fix this by adding "max-repeating" and "max-sequential" and effectively deprecating
"max-consecutive" from the password rules language, but supporting it going forward as an alias to both
"max-repeating" and "max-sequential".
max-repeating: Defines the maximum number of identical characters allowed to be back-to-back in a password.
max-repeating: 3, but notmax-repeating: 2.max-sequential: Defines the maximum number of characters adjacent to each other, directional within the ascii lookup
table within ranges "a-z", "A-Z", and "0-9", allowed to be back-to-back in a password.
max-sequential: 3, but notmax-sequential: 2.max-sequential: 3, but notmax-sequential: 2.max-sequential: 3, but notmax-sequential: 2.max-sequential: 3, but notmax-sequential: 2.Apple documentation needs to be updated after this change. I will work on fixing that.
Overall Checklist