Returns special error code when a new account try to reuse existing email address.

This commit is contained in:
Pierre HUBERT 2018-08-20 14:10:58 +02:00
parent 4c74b9c414
commit 5bddd624ca

View File

@ -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();