This commit is contained in:
Moriz Wahl 2021-06-15 14:27:50 +02:00
parent 4d6bc21fb4
commit 7f2cb00e4f
2 changed files with 2 additions and 3 deletions

View File

@ -34,7 +34,7 @@ const apiPost = async (url, payload) => {
return { success: true, result: result.error }
}
if (result.data.state !== 'success') {
throw new Error(result.data.errors)
throw new Error(result.data.msg)
}
return { success: true, result }
} catch (error) {

View File

@ -181,11 +181,10 @@ export default {
)
if (result.success) {
this.$toast.success(this.$t('site.thx.reset'))
this.cancelEdit()
} else {
this.$toast.error(this.$t('error.change-password'))
this.cancelEdit()
}
this.cancelEdit()
},
},
computed: {