parse-community / parse-server

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

Add log option for username taken event #9329

Open mtrezza opened 3 weeks ago

mtrezza commented 3 weeks 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 3 weeks ago

Thanks for opening this issue!

KrishDave1 commented 3 weeks ago

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

mtrezza commented 3 weeks ago

Sure, please go ahead.

Hriishikeshh commented 3 weeks ago

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

mtrezza commented 3 weeks 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 3 weeks ago

/assign