mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-27 07:49:27 +00:00
Returns special error code when a new account try to reuse existing email address.
This commit is contained in:
parent
4c74b9c414
commit
5bddd624ca
@ -248,7 +248,7 @@ class accountController {
|
||||
|
||||
//Check if the email address is already associated with an account
|
||||
if(components()->account->exists_email($email))
|
||||
Rest_fatal_error(401, "The specified email address is already associated with an account!");
|
||||
Rest_fatal_error(409, "The specified email address is already associated with an account!");
|
||||
|
||||
//Create new account object
|
||||
$newAccount = new NewAccount();
|
||||
|
Loading…
Reference in New Issue
Block a user