ani1609 / Spendwise

Spendwise - Your User-Friendly Expense Tracker
https://spendwise-seven.vercel.app/
MIT License
26 stars 49 forks source link

Added validation for email while signing up. #253

Closed Anuj-Gill closed 8 months ago

Anuj-Gill commented 8 months ago

Issue While signing up, invalid email formats were not being handled correctly.

Description: Added Zod validation for email to ensure correct format during signup. Implemented a structured error response with HTTP status code 400 for invalid emails. Enhanced error message clarity and consistency with best practices.

Checklist:

Screenshots: If the user enters email in wrong format, ie. test@gmail, test@a or something, the user will see this: image

The user requires to enter the mail in correct format ie test@gmail.co or com or something test@(something).(something like co, com, in etc)

vercel[bot] commented 8 months ago

Someone is attempting to deploy a commit to a Personal Account owned by @ani1609 on Vercel.

@ani1609 first needs to authorize it.

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
spendwise ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 22, 2023 8:42pm
spendwise-server ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 22, 2023 8:42pm
ani1609 commented 8 months ago

@Anuj-Gill i just tried to signup with an email 'mail@tt' and it got be signed up without giving any error!!

Anuj-Gill commented 8 months ago

@ani1609 image But it's giving me an error when i am running it locally.