diff --git a/webapp/components/LoginForm/LoginForm.vue b/webapp/components/LoginForm/LoginForm.vue index 0eb0d4be9..91693ed4b 100644 --- a/webapp/components/LoginForm/LoginForm.vue +++ b/webapp/components/LoginForm/LoginForm.vue @@ -98,7 +98,7 @@ export default { this.$toast.success(this.$t('login.success')) this.$emit('success') } catch (err) { - this.$toast.error(err.message) + this.$toast.error(this.$t('login.failure')) } }, }, diff --git a/webapp/locales/de.json b/webapp/locales/de.json index 9ef19e486..57e33afec 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -112,7 +112,8 @@ "moreInfoURL": "https://human-connection.org", "moreInfoHint": "zur Präsentationsseite", "hello": "Hallo", - "success": "Du bist eingeloggt!" + "success": "Du bist eingeloggt!", + "failure": "Login fehlgeschlagen" }, "editor": { "placeholder": "Schreib etwas Inspirierendes …", diff --git a/webapp/locales/en.json b/webapp/locales/en.json index 1a2ea643b..3c136b63a 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -113,7 +113,8 @@ "moreInfoURL": "https://human-connection.org/en/", "moreInfoHint": "to the presentation page", "hello": "Hello", - "success": "You are logged in!" + "success": "You are logged in!", + "failure": "Login failed" }, "editor": { "placeholder": "Leave your inspirational thoughts …",