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