-
Notifications
You must be signed in to change notification settings - Fork 943
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 1 commit
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
10000
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
feat(password): WIP
- Loading branch information
commit 309d8393bba0e882d399be3b407a5c043fce857e
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1322,6 +1322,13 @@ class ApiMethods { | |
await this.axios.put(`/api/v2/users/${userId}/password`, updatePassword); | ||
}; | ||
|
||
validateUserPassword = async ( | ||
password: string, | ||
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. Should we be using the
|
||
): Promise<boolean> => { | ||
const response = await this.axios.post("/api/v2/users/validate-password", { password }); | ||
return response.data.isValid; | ||
}; | ||
|
||
getRoles = async (): Promise<Array<TypesGen.AssignableRoles>> => { | ||
const response = await this.axios.get<TypesGen.AssignableRoles[]>( | ||
"/api/v2/users/roles", | ||
|
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.
Uh oh!
There was an error while loading. Please reload this page.