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: {