Replies: 5 comments 3 replies
-
This feature could be added using a plugin in the addons, but there are some questions about it, how would it know what is weak and strong? |
Beta Was this translation helpful? Give feedback.
-
thank you gustavo for your response and about your question I am thinking of it as a props there is 3 states: strong, medium,weak so: mediumRegex,strongRegex we need these properties to achieve this functionality perfectly |
Beta Was this translation helpful? Give feedback.
-
I didn't mean that we had this already, I meant that this feature shouldn't be in the core of the input itself as there are people who would not opt-in for it, and its not a necessary feature. I meant that you could write an addon/plugin to achieve this functionallity and pass a PR to the addons package. It would add 6 props, I think that is too much, better to have instead a single prop that receiveis an object with those, also how would it integrate with validation? also if someone wants a simpler version that would be aside from the help instead of a popup how would that be possible if so? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Would those be optional or not? you sent this example, as the weak has not regex, by default would it be mean any value outside of empty is weak? if so, what would happen if there isn't a {
'strongRegex':'^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[@#$%^*!~]).{12,}$',
'mediumRegex':'^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[@#$%^*]).{8,}$',
'weakLabel':'password is weak',
'mediumLabel': 'password is good',
'strongLabel' : 'password is very strong'
} @justin-schroeder any input you could give? |
Beta Was this translation helpful? Give feedback.
-
I have an idea for adding a strength meter displayed as a popup while a value is being entered.
I am ready to contribute to the project by adding this feature
example
example 2
Beta Was this translation helpful? Give feedback.
All reactions