-
Notifications
You must be signed in to change notification settings - Fork 946
fix: improve password validation flow #15132
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
b93dc6b
fix(setup): improve password validation flow on first user setup
defelmnq cf31dde
fix(setup): improve password validation flow on first user setup
defelmnq 309d839
feat(password): WIP
defelmnq 388a58b
feat(password): apply backend logic to all password set fields
defelmnq f9cce4c
Merge remote-tracking branch 'origin/main' into fix-password-validation
defelmnq 8a5e63f
Merge remote-tracking branch 'origin/main' into fix-password-validation
defelmnq 8f695ab
feat(password): apply backend logic to all password set fields
defelmnq c103559
feat(password): apply backend logic to all password set fields
defelmnq dc46019
feat(password): apply backend logic to all password set fields
defelmnq 37072ee
feat(password): apply backend logic to all password set fields
defelmnq b4b8b06
feat(password): apply backend logic to all password set fields
defelmnq 0efd24f
feat(password): add test for validate password method
defelmnq a6ee1cc
fix(password): display only if password is set
defelmnq 51b1e51
WIP: Working on testing improvement
defelmnq e2128e6
site: change logic to generate error instead of helper text on passwo…
defelmnq f37ef9e
fix storybook
defelmnq 36cadeb
Merge remote-tracking branch 'origin/main' into fix-password-validation
defelmnq 175b4bf
feat(password): add details field to validate password endpoint
defelmnq f33eac2
feat(password): add details field to validate password endpoint
defelmnq 2e0941b
Extract validation logic to a component
BrunoQuaresma 3869dd5
Merge remote-tracking branch 'origin/main' into fix-password-validation
defelmnq File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
defelmnq marked this conversation as resolved.
Show resolved
Hide resolved
|
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
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
Oops, something went wrong.
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.
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.
For now this logic stays pretty simple - here's the place where we'll be able to apply all the validation logic we want
Uh oh!
There was an error while loading. Please reload this page.
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.
As far as I'm concerned here, we are squishing together three distinct separate changes:
Of these three options, 1) and 2) are relatively innocuous. 3) is the one I'm mainly concerned about.
I propose keeping the existing password validation logic (via entropy) in this PR and opening a separate PR to modify the password validation logic if required.
My proposal for a roughly equivalent non-entropy-based password validation logic is:
[^a-zA-Z0-9\s]
)EDIT: we should however be extremely careful if we change the validation, as users could have existing passwords that are valid per entropy but invalid per the above rule.