File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,15 @@ export const UsernameSchema = z
1616export const PasswordSchema = z
1717 . string ( { required_error : 'Password is required' } )
1818 . min ( 6 , { message : 'Password is too short' } )
19- . max ( 100 , { message : 'Password is too long' } )
19+ // NOTE: bcrypt has a limit of 72 characters (which should be plenty long)
20+ // https://github.com/epicweb-dev/epic-stack/issues/918
21+ . max ( 72 , { message : 'Password is too long' } )
22+
2023export const NameSchema = z
2124 . string ( { required_error : 'Name is required' } )
2225 . min ( 3 , { message : 'Name is too short' } )
2326 . max ( 40 , { message : 'Name is too long' } )
27+
2428export const EmailSchema = z
2529 . string ( { required_error : 'Email is required' } )
2630 . email ( { message : 'Email is invalid' } )
You can’t perform that action at this time.
0 commit comments