Fix incorrect json structure

This commit is contained in:
Björn Fromme
2022-10-12 15:14:43 +02:00
parent 57ab8836ae
commit fcac0f7ef9
@@ -113,32 +113,32 @@
}
this.resetPassword(this.email)
.then(response => {
this.email = '';
if (response.data.success) {
this.email = '';
if (response.success) {
this.alert({
message: 'Du erhältst in Kürze eine E-Mail mit einem Link zum (Zurück)setzen deines Passworts.',
success: true,
})
} else {
this.alert({
message: 'Diese E-Mail Adresse konnte nicht gefunden werden.',
success: false,
})
}
}).catch(error => {
this.alert({
message: 'Du erhältst in Kürze eine E-Mail mit einem Link zum (Zurück)setzen deines Passworts.',
success: true,
})
} else {
this.alert({
message: 'Diese E-Mail Adresse konnte nicht gefunden werden.',
message: 'Bitte überprüfe deine Eingaben.',
success: false,
})
}
}).catch(error => {
this.alert({
message: 'Bitte überprüfe deine Eingaben.',
success: false,
});
const violations = error.response.data.violations;
if (typeof violations !== 'undefined') {
for (let violation of violations) {
this.$set(this.formErrors, violation.property_path, violation.message);
const violations = error.response.data.violations;
if (typeof violations !== 'undefined') {
for (let violation of violations) {
this.$set(this.formErrors, violation.property_path, violation.message);
}
}
}
}).finally(() => {
this.$emit('loaded')
})
}).finally(() => {
this.$emit('loaded')
})
}
},
computed: {