shelcia / Socialgram

Social Gram is a social media website that allows users to create and share content, similar to other popular platforms such as Twitter and Facebook. Users will be able to create posts, and share them with others. The platform also allows for users to react and engage with other user's content, such as by liking, commenting, or sharing.
https://social--gram.vercel.app/
Apache License 2.0
38 stars 44 forks source link

Add validation on Login and Signup Pages #232

Closed AkashSharma001 closed 1 year ago

AkashSharma001 commented 1 year ago

I've implemented validation using the HTML attribute. To work with HTML validation, I added the onSubmit attribute with the onSubmit Function in the form tag and removed the onClick attribute from the button. Still, in the email, the HTML validation pattern attribute isn't working correctly.

To fix that I have used email regex with useEffect to check and validate email using a pattern.

229

AkashSharma001 commented 1 year ago

Deployment Failed Because of CI=True I have also Deployed the site in Netlify.

https://cheery-froyo-b8a69d.netlify.app/

My Build Command is CI=false npm run build

@shelcia

shelcia commented 1 year ago

Deployment Failed Because of CI=True I have also Deployed the site in Netlify.

https://cheery-froyo-b8a69d.netlify.app/

My Build Command is CI=false npm run build

@shelcia

Deployment is still failing

AkashSharma001 commented 1 year ago

@shelcia So how can I fix deployment issue?

shelcia commented 1 year ago

use yup library instead

AkashSharma001 commented 1 year ago

use yup library instead

okay