From 7f2cb00e4ff477dd334d864c58e37db725b527d4 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Tue, 15 Jun 2021 14:27:50 +0200 Subject: [PATCH] fixes --- frontend/src/apis/loginAPI.js | 2 +- .../src/views/Pages/UserProfile/UserCard_FormUserPasswort.vue | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/apis/loginAPI.js b/frontend/src/apis/loginAPI.js index c72965ea5..5b55d3a5b 100644 --- a/frontend/src/apis/loginAPI.js +++ b/frontend/src/apis/loginAPI.js @@ -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) { diff --git a/frontend/src/views/Pages/UserProfile/UserCard_FormUserPasswort.vue b/frontend/src/views/Pages/UserProfile/UserCard_FormUserPasswort.vue index 720a65192..29c7c6924 100644 --- a/frontend/src/views/Pages/UserProfile/UserCard_FormUserPasswort.vue +++ b/frontend/src/views/Pages/UserProfile/UserCard_FormUserPasswort.vue @@ -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: {