From a638344f6f6ae9fe662cd88f112c25e476d149e0 Mon Sep 17 00:00:00 2001 From: rare1k Date: Fri, 7 Jun 2024 20:49:01 -0400 Subject: [PATCH] feat: clear password if it doesnt meet requirements --- frontend/src/lib/components/auth.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/lib/components/auth.ts b/frontend/src/lib/components/auth.ts index 1d54271..8cd5c1b 100644 --- a/frontend/src/lib/components/auth.ts +++ b/frontend/src/lib/components/auth.ts @@ -18,6 +18,8 @@ async function onAuthClick() { description: "A password must be 10 characters long, have atleast 1 lowercase letter, and atleast 1 number.", }); // @ts-expect-error + document.querySelector("input[type=\"password\"]").value = "" + // @ts-expect-error document.querySelector('.auth-dialog-trigger').click(); return; }