Fix password
This commit is contained in:
@@ -89,10 +89,10 @@
|
||||
},
|
||||
methods: {
|
||||
save() {
|
||||
if (password.newPassword !== password.confirmNewPassword) {
|
||||
if (this.passwordData.newPassword !== this.passwordData.confirmNewPassword) {
|
||||
this.error = "Password mismatch";
|
||||
return;
|
||||
}
|
||||
};
|
||||
this.error = null;
|
||||
fetch("/api/password", {
|
||||
method: "POST",
|
||||
|
||||
@@ -74,6 +74,10 @@
|
||||
},
|
||||
methods: {
|
||||
save() {
|
||||
if (this.passwordData.newPassword !== this.passwordData.confirmNewPassword) {
|
||||
this.error = "Password mismatch";
|
||||
return;
|
||||
};
|
||||
this.error = null;
|
||||
this.loading = true;
|
||||
fetch("/api/password", {
|
||||
|
||||
Reference in New Issue
Block a user