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

Add Validation for Sign-Up & Sign-In Using Yup #137

Open
Ibinola opened this issue Feb 24, 2025 · 2 comments
Open

Add Validation for Sign-Up & Sign-In Using Yup #137

Ibinola opened this issue Feb 24, 2025 · 2 comments

Comments

@Ibinola
Copy link
Contributor

Ibinola commented Feb 24, 2025

Description

We need to implement form validation for user Sign-Up and Sign-In using Yup. This ensures proper data integrity and prevents incorrect user inputs. The validation schema should be placed inside the utils folder with the file name:

📂 utils/authValidationSchema.js

Tasks

  1. Create authValidationSchema for Validation

Fields for Sign-In:

  • email: Ensures the input is a valid email format.
  • password: Enforces a secure password policy (minimum 8 characters, at least 1 uppercase, 1 lowercase, 1 special character).

Fields for Sign-Up:

  • Username (min length 3).
  • Email (valid email format).
  • Password (min 8 characters, must contain uppercase, lowercase, special character, and number).
  • Confirm Password (must match the password).

Use Yup for enforcing these constraints.

  1. Implement Schema for Sign-Up & Sign-In
  • Sign-Up & Sign-In Schema (authValidationSchema)
  • Reuse validation rules for consistency.
  1. Export and Organize Validation in authValidationSchema.ts

Ensure all schemas are properly structured and exported for use in authentication forms.

Validation Rules

✅ Email: Must be a valid email format.
✅ Password: Minimum 8 characters, 1 uppercase, 1 lowercase, 1 special character.
✅ Confirm Password: Must match the entered password.

@SudiptaPaul-31
Copy link

May I be assigned to this task

My name is Sudipta Paul a fullstack and blockchain developer with an experience of more than two years and have worked on many opensource projects and would love to work on this too

ETA : 1 DAY

@FrankiePower
Copy link

Hello Team,

It's SuperFranky here, i am a diamond and returning contributor. As always I am excited to be participating in the open source week. I am a frontend and blockchain developer with over 3+ years of experience and have contributed to a variety of interesting projects in the Web3 space. My expertise is in React, Next.js, Solidity,Rust and Cairo. My most recent cairo project was building an erc1155 smart contract with programmable licensing. So i am very familiar with writing cairo and testing. I look forward to contributing to this project. Thank you for considering my application.

ETA: 48 hours

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants