Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email Validation Bug #704

Open
kamau-n opened this issue Jul 15, 2024 · 0 comments
Open

Email Validation Bug #704

kamau-n opened this issue Jul 15, 2024 · 0 comments

Comments

@kamau-n
Copy link

kamau-n commented Jul 15, 2024

Describe the bug
During email validation , we are facing the following issue
Case
Example Email : [email protected]

The following email does not pass validation.
Error : Invalid Email

To Reproduce

  1. Create a signup form which used zod validation for the above email

  2. Define a rules for the email as follows

export const registerRules = z.object({ username: z.string().min(1, "Username is Required"), email: z.string().min(1, "Email is Required").email("Email is Invalid"), })

  1. Trying to validate the above provided email.
  2. Error : Email Validation Fails , Message(Invalid Email)

Expected behavior
Emails with special characters such as (.) to validate during signup.

Desktop (please complete the following information):

  • OS: Kali(Linux)
  • Browser [brave]
  • Version [Linux 6.6.15-amd64]

Smartphone (please complete the following information):

  • Device: [Infinix/Samsung/Tecno]
  • OS: [Android]
  • Browser [chrome]
  • Version [22]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant