Fix incorrect json structure

This commit is contained in:
Björn Fromme
2022-10-12 15:14:43 +02:00
parent 57ab8836ae
commit fcac0f7ef9
@@ -114,7 +114,7 @@
this.resetPassword(this.email) this.resetPassword(this.email)
.then(response => { .then(response => {
this.email = ''; this.email = '';
if (response.data.success) { if (response.success) {
this.alert({ this.alert({
message: 'Du erhältst in Kürze eine E-Mail mit einem Link zum (Zurück)setzen deines Passworts.', message: 'Du erhältst in Kürze eine E-Mail mit einem Link zum (Zurück)setzen deines Passworts.',
success: true, success: true,
@@ -129,7 +129,7 @@
this.alert({ this.alert({
message: 'Bitte überprüfe deine Eingaben.', message: 'Bitte überprüfe deine Eingaben.',
success: false, success: false,
}); })
const violations = error.response.data.violations; const violations = error.response.data.violations;
if (typeof violations !== 'undefined') { if (typeof violations !== 'undefined') {
for (let violation of violations) { for (let violation of violations) {