Skip to content

Commit f1b503c

Browse files
committed
Merge branch 'KCI-141' into KCI-140
2 parents 2c255e0 + 349a4ce commit f1b503c

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
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/components/authorisation/PasswordResetCard.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ export default {
9090
9191
resetRequest(this.form.email, this.token, this.form.password, this.form.passwordConfirmation)
9292
.then(() => {
93-
this.alertType = 'success';
94-
this.alertMessage = this.$t('authorisation.passwordReset.successMessage');
93+
this.$router.push({name: 'login', query: {message: 'passwordResetSuccess'}});
9594
})
9695
.catch((error) => {
9796
this.alertType = 'error';

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",

generator/templates/Authorisation/src/views/authorisation/InvitationAccept.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ export default {
115115
this.isLoading = true;
116116
acceptInvitation(this.email, this.$route.params.token, this.password, this.passwordConfirmation)
117117
.then(() => {
118-
this.alertType = 'success';
119-
this.alertMessage = this.$t('authorisation.invitationAccept.successMessage');
118+
this.$router.push({name: 'login', query: {message: 'invitationAcceptSuccess'}});
120119
})
121120
.catch((error) => {
122121
this.alertType = 'error';

generator/templates/Authorisation/src/views/authorisation/RegistrationVerify.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ export default {
8686
8787
verify(token, this.form.email, this.form.password, this.form.passwordConfirmation)
8888
.then(() => {
89-
this.alertMessage = this.$t('authorisation.registrationVerify.successMessage');
90-
this.alertType = 'success';
89+
this.$router.push({name: 'login', query: {message: 'registrationVerify'}});
9190
})
9291
.catch((error) => {
9392
const { response } = error;

0 commit comments

Comments
 (0)