Skip to content

Commit 2285ee3

Browse files
committed
feat(authorisation-requests): Validate in the catch of a request for displaying server-errors
1 parent c6d7dc0 commit 2285ee3

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export default {
104104
} else {
105105
this.errorMessage = this.findError('email');
106106
}
107+
this.$refs.form.validate();
107108
})
108109
.finally(() => {
109110
this.isLoading = false;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export default {
7777
})
7878
.catch(() => {
7979
this.alertMessage = this.$t('errors.422');
80+
this.$refs.form.validate();
8081
})
8182
.finally(() => {
8283
this.isLoading = false;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export default {
6767
.catch(() => {
6868
this.alertType = 'error';
6969
this.alertMessage = 'De ingevulde gegevens kloppen niet.';
70+
this.$refs.form.validate();
7071
})
7172
.finally(() => {
7273
this.isLoading = false;

0 commit comments

Comments
 (0)