Explorar o código

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

Kristian Vos %!s(int64=3) %!d(string=hai) anos
pai
achega
ef9ee832aa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.");