Skip to content

Commit

Permalink
Update auth.tsx (#226)
Browse files Browse the repository at this point in the history
* Update auth.tsx

Updated password min length in registerInputSchema to match loginInputSchema's

* update auth

---------

Co-authored-by: Alan Alickovic <alan2207@live.com>
  • Loading branch information
yarinsn and alan2207 authored Dec 7, 2024
1 parent 1deca0b commit a55e984
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/nextjs-app/src/lib/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const registerInputSchema = z
email: z.string().min(1, 'Required'),
firstName: z.string().min(1, 'Required'),
lastName: z.string().min(1, 'Required'),
password: z.string().min(1, 'Required'),
password: z.string().min(5, 'Required'),
})
.and(
z
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs-pages/src/lib/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const registerInputSchema = z
email: z.string().min(1, 'Required'),
firstName: z.string().min(1, 'Required'),
lastName: z.string().min(1, 'Required'),
password: z.string().min(1, 'Required'),
password: z.string().min(5, 'Required'),
})
.and(
z
Expand Down
2 changes: 1 addition & 1 deletion apps/react-vite/src/lib/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const registerInputSchema = z
email: z.string().min(1, 'Required'),
firstName: z.string().min(1, 'Required'),
lastName: z.string().min(1, 'Required'),
password: z.string().min(1, 'Required'),
password: z.string().min(5, 'Required'),
})
.and(
z
Expand Down

0 comments on commit a55e984

Please sign in to comment.