BNETDocs/bnetdocs-web

Fix internal error when registering a duplicate username

carlbennett opened this issue · 1 comments

Attempting to register a user account that already exists in the system should throw back an error to the user saying the account already exists. It correctly does this when there's a duplicate email address attempt, but the username is not checked for. When a duplicate username is attempted, MySQL throws an error because the column has a unique index and the username already exists, which throws an internal error to the user. Screenshot below.

Reported by @xpeh-owns.

image

Fixed by @Davnit in #92