Skip to content

#25 feat: added password strength validator #68

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Nikhil-IITG
Copy link

Added Password Strength Validator with some customisations, hope this works and you like it. I've attached some pictures of how it looks.

Screenshot (49)
Screenshot (50)
Screenshot (51)
Screenshot (47)
Screenshot (48)

@Nikhil-IITG Nikhil-IITG changed the title feat: added password strength validator #25 feat: added password strength validator Oct 31, 2023
@Nikhil-IITG Nikhil-IITG changed the title #25 feat: added password strength validator feat: added password strength validator #25 Oct 31, 2023
@Nikhil-IITG Nikhil-IITG changed the title feat: added password strength validator #25 #25 feat: added password strength validator Oct 31, 2023
const mediumRegex = new RegExp("^(?=.{6,}).*$");

//logic
if(value.length<4){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try to improve this logic due to the object calisthenics

const mediumRegex = new RegExp("^(?=.{6,}).*$");

//logic
if(value.length<4){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try to improve this logic due to the object calisthenics, and add strings to an enum

Copy link
Author

@Nikhil-IITG Nikhil-IITG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modified as required. Kindly review

@Nikhil-IITG Nikhil-IITG requested a review from rubemfsv January 31, 2024 17:41
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

Successfully merging this pull request may close these issues.

2 participants