-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Ajax password reset #5332
Merged
Merged
Ajax password reset #5332
Changes from 13 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
3aefd64
Merge pull request #3 from parse-community/master
moonion 6481a5a
adapted public api route for use with ajax
2d50f20
Elegant error handling
b0e8f3d
Fixed error return
d2f3101
Public API error flow redone, tests
8e0e258
Fixed code to pre-build form
3c914df
Public API change password return params
3a7e0f7
Reverted errors in resetPassword
a9828cc
Fixed querystring call
062471f
Success test on ajax password reset
b5436fd
Added few more routes to tests for coverage
afdcb4f
More tests and redone error return slightly
f51db6c
Updated error text
0e86783
Console logs removal, renamed test, added {} to if
c0688b3
Wrong error sent
68ee2c4
Revert changes
a8cb050
Revert "Revert changes"
4bf3667
real revert of {}
6f82c0b
nits and test fix
dplewis 168e5ed
Merge remote-tracking branch 'upstream/master' into ajax-password-reset
dplewis 5342a18
fix tests
dplewis a8d9504
throw proper error
dplewis 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 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 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 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 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
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.
Can you rewrite your tests using
async
/await
?Reading this is confusing with all the nested promises.
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.
async / await is not used in any of the tests, and i noticed there is actually a lot of branching promises in the other tests, since .catch blocks contain specific error messages for almost each action. Is it really necessary to rewrite this test?