Skip to content

Commit

Permalink
Make password require 8 characters, just like confirm (#265)
Browse files Browse the repository at this point in the history
Should keep the two consistent
  • Loading branch information
chennisden authored Aug 7, 2024
1 parent 56ffd7e commit d998cf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const SignUpSchema = z
.string({
required_error: "Password required.",
})
.min(4, { message: "Password must be at least 4 characters long." })
.min(8, { message: "Password must be at least 8 characters long." })
.refine(
(password) => {
const result = zxcvbn(password);
Expand Down

0 comments on commit d998cf4

Please sign in to comment.