Browse Source

fix(Settings): changing password would not create a success toast

Kristian Vos 3 năm trước cách đây
mục cha
commit
ef9ee832aa
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      frontend/src/pages/Settings/Tabs/Security.vue

+ 1 - 1
frontend/src/pages/Settings/Tabs/Security.vue

@@ -254,7 +254,7 @@ export default {
 				res => {
 					if (res.status !== "success") new Toast(res.message);
 					else {
-						this.validation.prevPassword.value = "";
+						this.validation.oldPassword.value = "";
 						this.validation.newPassword.value = "";
 
 						new Toast("Successfully changed password.");