From 99bc74875edb44b4e679b17158511474cd575e10 Mon Sep 17 00:00:00 2001
From: Pitu <heyitspitu@gmail.com>
Date: Sat, 2 Mar 2019 22:36:16 +0900
Subject: Various password fixes

---
 src/site/pages/dashboard/account.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/site/pages/dashboard/account.vue')

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`,
-- 
cgit v1.2.3

