Skip to content

Commit

Permalink
trimming email input in validation twentyhq#3195 (twentyhq#3246)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakan-Makhashin authored Jan 5, 2024
1 parent 4552b88 commit db17d46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export enum SignInUpStep {
const validationSchema = z
.object({
exist: z.boolean(),
email: z.string().email('Email must be a valid email'),
email: z.string().trim().email('Email must be a valid email'),
password: z
.string()
.regex(PASSWORD_REGEX, 'Password must contain at least 8 characters'),
Expand Down

0 comments on commit db17d46

Please sign in to comment.