parse-community / parse-community/parse-server
Improve reset password API
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 21.4k
- Forks
- 4.8k
- Avg merge
- 7h 45m
- Merged PRs (30d)
- 11
Description
Is your feature request related to a problem? Please describe.
I'm fan of parse server and after playing around this great tool I found a posible case of improvement on resetting password functionality. The error messages are not localized and there aren't specific error codes when making calls to the endpoint /request_password_reset, error codes are always -1. For example:
{code: -1, error: "Failed to reset password: username / email / token is invalid"}
{"code":-1,"error":"Password does not meet the Password Policy requirements."}
So, no way for the developer to handle error codes for a custom implementation of resetting password.
Describe alternatives you've considered
This implementation will require adding new error codes to the DefinitelyTyped like:
ParseError.USERNAME_NOT_FOUND = 603;
ParseError.RESET_PASSWORD_ERROR = 604;
ParseError.RESET_LINK_EXPIRED = 605;
ParseError.PASSWORD_POLICY_USERNAME = 606;
ParseError.PASSWORD_POLICY_REPEAT = 607;
ParseError.PASSWORD_POLICY_NOT_MEET = 608;
Additional context
This is my first time contributing to this great project and I'll appreciate if this proposal can be considered for future releases of parse server.
Related features:
- Another feature that I considered that could be implemented in a separated ticket can be supporting password less authentication, I think it has been discussed already here
Thanks so much!
Awesome project guys!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the /request_password_reset endpoint and review the DefinitelyTyped parse ts3.7 index.d.ts file linked in the issue. Trace how reset failures and error codes are currently represented, then identify the relevant endpoint tests or documentation. Done means the requested reset cases have stable, localized responses and corresponding typed constants.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- api, authentication
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100