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