fix: error on duplicate username/email registration (#1168)

* fix: error on duplicate username/email registration

* Raise 409 http error on duplicate user registration

* Add translation to conflict error messages

* Update lang files

* Remove key in translator parameter
This commit is contained in:
Miroito
2022-04-30 22:25:29 +02:00
committed by GitHub
parent 633ec541ea
commit 67178f9b74
34 changed files with 106 additions and 33 deletions

View File

@@ -8,6 +8,8 @@
"exceptions": {
"permission_denied": "You do not have permission to perform this action",
"no-entry-found": "The requested resource was not found",
"integrity-error": "Database integrity error"
"integrity-error": "Database integrity error",
"username-conflict-error": "This username is already taken",
"email-conflict-error": "This email is already in use"
}
}