diff options
Diffstat (limited to 'src/site')
| -rw-r--r-- | src/site/pages/dashboard/account.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/site/pages/dashboard/account.vue b/src/site/pages/dashboard/account.vue index 8e3bc65..3ff6c70 100644 --- a/src/site/pages/dashboard/account.vue +++ b/src/site/pages/dashboard/account.vue @@ -114,8 +114,8 @@ export default { } }, async changePassword() { - if (!this.user.password || !this.user.newPassword || !this.user.reNewPassword) return; - if (this.user.newPassword !== this.user.reNewPassword) return; + if (!this.user.password || !this.user.newPassword || !this.user.reNewPassword) return this.$showToast('One or more fields are missing', true); + if (this.user.newPassword !== this.user.reNewPassword) return this.$showToast('Passwords don\'t match', true); try { const response = await this.axios.post(`${this.config.baseURL}/user/password/change`, |