-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: improve the PIN Enter repetition validation rule and add relevant messages #1401
base: main
Are you sure you want to change the base?
Changes from 7 commits
276f31e
8f4d738
a0fd478
013a819
5c412ff
354f500
bafa89c
fc6edee
9cadf77
005976c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,7 +77,7 @@ describe('PIN creation validations', () => { | |
test('PIN with repeated numbers and repeated numbers validation to true, so the validation use the default of two repeated numbers, should return NoRepetitionOfTheSameNumbersValidation as invalid', async () => { | ||
const PINRulesWithRepeatedNumbers = { | ||
...defaultPINRules, | ||
no_repeated_numbers: true, | ||
no_repeated_numbers: 0, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jleach Good point, It is type There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jian4on ah right, the type changed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure this will work well. There will be no way to disable the rule unless another flag is added. You can put in a high number but that will then be displayed during password selection, which would be confusing for the user. |
||
} | ||
|
||
const PINWithRepeatedNumbers = '113456' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When would the
> 2
check be needed at the same time as the string interpolation below is? Wouldn't there only be one case (3) where that condition is satisfied?