From 5bddd624cac1937f9cef9156259864be049ee691 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 20 Aug 2018 14:10:58 +0200 Subject: [PATCH] Returns special error code when a new account try to reuse existing email address. --- RestControllers/accountController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RestControllers/accountController.php b/RestControllers/accountController.php index 4e37726..4e84365 100644 --- a/RestControllers/accountController.php +++ b/RestControllers/accountController.php @@ -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();