parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Add log option for username taken event

Open mtrezza opened this issue 1 year ago • 6 comments
trafficstars

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

  • https://github.com/parse-community/parse-server/issues/8529

mtrezza avatar Oct 09 '24 11:10 mtrezza