fix(account): trim forum login password

This commit is contained in:
2026-05-18 22:39:00 +08:00
parent 63dac217c2
commit 62081fb0ad
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -9,8 +9,8 @@ describe("LoginModal", () => {
props: { show: true, loading: false, error: "" }, props: { show: true, loading: false, error: "" },
}); });
await fireEvent.update(screen.getByLabelText("论坛账号"), "momen"); await fireEvent.update(screen.getByLabelText("论坛账号"), " momen ");
await fireEvent.update(screen.getByLabelText("论坛密码"), "secret"); await fireEvent.update(screen.getByLabelText("论坛密码"), " secret ");
await fireEvent.click(screen.getByRole("button", { name: "登录" })); await fireEvent.click(screen.getByRole("button", { name: "登录" }));
await fireEvent.click(screen.getByRole("button", { name: "注册账号" })); await fireEvent.click(screen.getByRole("button", { name: "注册账号" }));
+1 -1
View File
@@ -114,7 +114,7 @@ const password = ref("");
const submitLogin = () => { const submitLogin = () => {
emit("login", { emit("login", {
identification: identification.value.trim(), identification: identification.value.trim(),
password: password.value, password: password.value.trim(),
}); });
}; };
</script> </script>