Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

Commit

Permalink
feat: clear password if it doesnt meet requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
uhidontkno committed Jun 8, 2024
1 parent 496e726 commit a638344
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/lib/components/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a638344

Please sign in to comment.