Fix incorrect json structure
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user