parse-server
parse-server copied to clipboard
feat: Add customizable log level for 'username already exists' error
trafficstars
Pull Request
- Report security issues confidentially.
- Any contribution is under this license.
- Link this pull request to an issue.
Issue
#9329
Closes: #9329
Approach
So I have created a new interface LogEventsOptions interface in src/Options/index.js to incorporate the custom logEvents option in case of username already taken error.
Then I have modified the RestWrite.js file to check for and apply the custom log level when a username already exists error occurs.I have also added documentation for the new option in src/Options/docs.js.
I have also included a new test case in spec/ParseUser.spec.js to verify the functionality of the custom log level.
If any changes are required , please inform me , I will do it.
Tasks
- [x] Add tests
- [x] Add changes to documentation (guides, repository pages, code comments)