Skip to content

Commit

Permalink
chore(valibot): change minLength with nonEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
zougari47 committed Jun 18, 2024
1 parent 6465b16 commit 467b956
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import * as v from 'valibot';
const LoginSchema = v.object({
email: v.pipe(
v.string(),
v.minLength(1, 'Please enter your email.'),
v.nonEmpty('Please enter your email.'),
v.email('The email address is badly formatted.')
),
password: v.pipe(
v.string(),
v.minLength(1, 'Please enter your password.'),
v.nonEmpty('Please enter your password.'),
v.minLength(8, 'Your password must have 8 characters or more.')
),
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ import * as v from 'valibot';
const LoginSchema = v.object({
email: v.pipe(
v.string(),
v.minLength(1, 'Please enter your email.'),
v.nonEmpty('Please enter your email.'),
v.email('he email address is badly formatted.'),
),
password: v.pipe(
v.string(),
v.minLength(1, 'Please enter your password.'),
v.nonEmpty('Please enter your password.'),
v.minLength(8, 'Your password must have 8 characters or more.'),
),
});
Expand Down Expand Up @@ -190,12 +190,12 @@ import * as v from 'valibot';
const LoginSchema = v.object({
email: v.pipe(
v.string(),
v.minLength(1, 'Please enter your email.'),
v.nonEmpty('Please enter your email.'),
v.email('The email address is badly formatted.'),
),
password: v.pipe(
v.string(),
v.minLength(1, 'Please enter your password.'),
v.nonEmpty('Please enter your password.'),
v.minLength(8, 'Your password must have 8 characters or more.'),
),
});
Expand Down

0 comments on commit 467b956

Please sign in to comment.