diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json index 41b5874147a292ffe63acfd34c5f9975f5a553be..9f664b2b1431aaeb3fa4e1ec6de214215d83eaa0 100644 --- a/i18n/en.i18n.json +++ b/i18n/en.i18n.json @@ -74,6 +74,8 @@ "accountPending":"You've been invited : please resume the registration process in order to log in.", "betaTestNotOpen":"Our developpers are fighting to open soon ! Check your mail that will happen soon !", "notValidatedEmail":"Your account is not validated : please check your mailbox to validate your email address.", + "emailNotFound":"Impossible to find an account for this username or password.", + "emailAndPassNotMatch":"Email or password does not march. Please try again !", "Cities":"Villes", "schemas":{ "followrest":{ diff --git a/i18n/fr.i18n.json b/i18n/fr.i18n.json index 4311cd85b27de11f06d5cb74b872a3e21c8a5483..8651120cef82e13fb2b56c6309b78f3f70238002 100644 --- a/i18n/fr.i18n.json +++ b/i18n/fr.i18n.json @@ -75,6 +75,8 @@ "accountPending":"Vous avez été invité(e) : vous n'avez plus qu'à finir l'inscription pour vous connecter.", "betaTestNotOpen":"Nos développeurs sont au taquet et ne dorment plus pour que la plateforme sorte bientôt ! Vérifiez votre boite aux lettres, ça arrive bientôt !", "notValidatedEmail":"Votre compte n'est pas validé : un mail vous a été envoyé sur votre boite mail.", + "emailNotFound":"impossible de trouver un compte avec ce nom d'utilisateur ou cet email.", + "emailAndPassNotMatch":"Email ou Mot de Passe ne correspondent pas, rééssayez.", "schemas":{ "followrest":{ "invitedUserName":{ diff --git a/imports/api/server/config.js b/imports/api/server/config.js index ba40911246c96b68a4658a465e0e2ba70deb1755..23bbc87dc03e1901b0b9b7452fd6203ffcf993b9 100644 --- a/imports/api/server/config.js +++ b/imports/api/server/config.js @@ -54,7 +54,7 @@ Accounts.registerLoginHandler(function(loginRequest) { } }else{ if(response && response.data && response.data.result === false){ - throw new Meteor.Error(Accounts.LoginCancelledError.numericError, 'Communecter Login Failed'); + throw new Meteor.Error(Accounts.LoginCancelledError.numericError, response.data.msg); } else if(response && response.data && response.data.result === true && response.data.msg){ throw new Meteor.Error(response.data.msg); }