parse-community / parse-server

Parse Server for Node.js / Express
https://parseplatform.org
Apache License 2.0
20.95k stars 4.78k forks source link

Add log option for username taken event #9329

Open mtrezza opened 1 month ago

mtrezza commented 1 month ago

New Feature / Enhancement Checklist

Current Limitation

Parse Server logs event when trying to sign up with a username that is already taken. This log event cannot be silenced.

Feature / Enhancement Description

Add a new Parse Server option logEvents.usernameAlreadyExists that allows to customize the log level.

Example Use Case

When trying to create a user with a username that is already taken by another user, this error is logged:

{
    "code": 202,
    "stack": "Error: Account already exists for this username.\n at node_modules/parse-server/lib/RestWrite.js:591:13"
}

References

parse-github-assistant[bot] commented 1 month ago

Thanks for opening this issue!

KrishDave1 commented 1 month ago

Can I work on this issue?Please assign it to me @mtrezza

mtrezza commented 1 month ago

Sure, please go ahead.

Hriishikeshh commented 1 month ago

hey i would like to work on this assign it to me if suited

mtrezza commented 1 month ago

@Hriishikeshh We do not formally assign PRs; just pick it up if you like; there is an ongoing PR with https://github.com/parse-community/parse-server/pull/9336 so you may want to coordinate with the author.

sanjaraiy commented 1 month ago

/assign