diff --git a/assets/js/langs/en.inc.js b/assets/js/langs/en.inc.js index 16ce34b2..71475818 100644 --- a/assets/js/langs/en.inc.js +++ b/assets/js/langs/en.inc.js @@ -211,6 +211,7 @@ ComunicWeb.common.langs.en = { form_create_account_err_passwd_differents: "The two passwords are not the same !", form_create_account_err_create_account_message: "An error occured while trying to create your account. It is most likely to be a server error, but please check your input...", form_create_account_err_existing_email: "This email address is already associated with an account!", + form_create_account_err_too_many_requests: "Too many account created for now. Please try again later...", form_create_account_err_create_account_title: "Account creation failed", //Account created page diff --git a/assets/js/langs/fr.inc.js b/assets/js/langs/fr.inc.js index c0d7bf08..d53d65a0 100644 --- a/assets/js/langs/fr.inc.js +++ b/assets/js/langs/fr.inc.js @@ -210,6 +210,7 @@ ComunicWeb.common.langs.fr = { form_create_account_err_passwd_differents: "Les deux mots de passe ne sont pas identiques !", form_create_account_err_create_account_message: "Une erreur a survenue lors de la tentative de création de compte. Veuillez vérifier votre saisie...", form_create_account_err_existing_email: "L'adresse mail spécifiée est déjà associée à un compte...", + form_create_account_err_too_many_requests: "Trop de comptes créés pour le moment, veuillez réessayer plus tard...", form_create_account_err_create_account_title: "La création de compte a échouée", //Account created page diff --git a/assets/js/pages/createAccount.js b/assets/js/pages/createAccount.js index 90aa4470..ee7430d4 100644 --- a/assets/js/pages/createAccount.js +++ b/assets/js/pages/createAccount.js @@ -181,6 +181,8 @@ ComunicWeb.pages.createAccount = { //Determine the right error to choose if(response.error.code == 409) var message = "form_create_account_err_existing_email"; + else if(response.error.code = 429) + var message = "form_create_account_err_too_many_requests"; else var message = "form_create_account_err_create_account_message";