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: {
save() {
if (password.newPassword !== password.confirmNewPassword) {
this.error = "Password mismatch";
return;
}
this.error = null;
fetch("/api/password", {
method: "POST",