Skip to content

Commit 4b75d73

Browse files
committed
Display route-messages on Login page
1 parent 378bef9 commit 4b75d73

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

generator/templates/Authorisation/src/components/authorisation/LoginCard.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
>
1111
{{ errorMessage }}
1212
</v-alert>
13+
<v-alert v-if="$route.query.message"
14+
class="mb-10"
15+
transition="fade-transition"
16+
type="success"
17+
>
18+
{{ $t(`authorisation.login.messages.${$route.query.message}`) }}
19+
</v-alert>
1320
<k-field-group language-prefix="authorisation.fields">
1421
<KTextField field="email"
1522
autofocus

generator/templates/Authorisation/src/locales/nl/authorisation.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
{
22
"login": {
33
"title": "Inloggen",
4-
"successMessage": "Je bent ingelogd, we sturen je nu door."
4+
"successMessage": "Je bent ingelogd, we sturen je nu door.",
5+
"messages": {
6+
"invitationAcceptSuccess": "Je account is geactiveerd, je kunt nu inloggen.",
7+
"passwordResetSuccess": "Je wachtwoord is veranderd, je kunt nu inloggen.",
8+
"registrationVerify": "Je registratie is voltooid, je kunt nu inloggen."
9+
}
510
},
611
"registrationVerify": {
712
"title": "Registratie afronden",

0 commit comments

Comments
 (0)