Actually check password confirmation when first setting password...

This commit is contained in:
Yukino Song
2024-07-30 20:28:50 +08:00
parent ce601eb2df
commit 7c84d8e0e3

View File

@@ -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",