Skip to content

Commit 349a4ce

Browse files
committed
Redirect user to loginpage with a router-message
1 parent 4b75d73 commit 349a4ce

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

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/views/authorisation/InvitationAccept.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ export default {
103103
this.isLoading = true;
104104
acceptInvitation(this.email, this.$route.params.token, this.password, this.passwordConfirmation)
105105
.then(() => {
106-
this.alertType = 'success';
107-
this.alertMessage = this.$t('authorisation.invitationAccept.successMessage');
106+
this.$router.push({name: 'login', query: {message: 'invitationAcceptSuccess'}});
108107
})
109108
.catch((error) => {
110109
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)