Skip to content

Commit

Permalink
fix: enforce password length of at least 6 chars in UI form validation (
Browse files Browse the repository at this point in the history
  • Loading branch information
rudokotrla authored Apr 14, 2024
1 parent a229acb commit 0d82d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/next/components/user/register-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const RegisterForm: React.FC = () => {

const FormSchema = z.object({
email: z.string().email({ message: "Invalid email address" }),
password: z.string().min(5, { message: "Must be 5 or more characters long" }),
password: z.string().min(6, { message: "Must be 6 or more characters long" }),
})

const RegisterFormComponent: React.FC<{
Expand Down

0 comments on commit 0d82d62

Please sign in to comment.