-
Notifications
You must be signed in to change notification settings - Fork 35
#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
base: main
Are you sure you want to change the base?
Conversation
const mediumRegex = new RegExp("^(?=.{6,}).*$"); | ||
|
||
//logic | ||
if(value.length<4){ |
There was a problem hiding this comment.
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){ |
There was a problem hiding this comment.
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
There was a problem hiding this 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
Added Password Strength Validator with some customisations, hope this works and you like it. I've attached some pictures of how it looks.