- Lauf für Kaya! - Registriert
+ Lauf für Kaya! - {{ $t('registriert') }}
Bitte klicken Sie zum Fortfahren auf den Link, den wir an
@@ -439,7 +439,13 @@ function login() {
.catch((error) => {
console.log(error);
if (error.data.message === "E-Mail already registered") {
- toast("bereits registriert...", { type: TYPE.ERROR });
+ toast(t('already_registered'), { type: TYPE.ERROR });
+ } else if (error.data.message === "Invalid body, check 'errors' property for more info.") {
+ error.data.errors.forEach(e => {
+ if (e.property === "phone") {
+ toast(t('invalid_input_phone_number_should_be_international_format'), { type: TYPE.ERROR });
+ }
+ });
}
});
}