rnadler / ng2-password-strength-bar

Angular 2/4/5 Password Strength Bar
http://bobonmedicaldevicesoftware.com/blog/2016/12/09/publishing-an-angular-2-component-npm-package/
MIT License
20 stars 17 forks source link

Access the strength value? #20

Closed CraigsterJ closed 5 years ago

CraigsterJ commented 6 years ago

I have the password strength bar working great, thanks. However I can't seem to see anywhere how I can use the strength value to do things like enable a Submit button. How can you access - possibly with an isValid sort of property or anything really?

Thanks! Craig

rnadler commented 6 years ago

This is essentially the same request as #17.

CraigsterJ commented 6 years ago

I did see that – however it was just marked as an enhancement so I guess I was trying to ask it a different way. Is there any way to know that the password is valid and use it in angular?

From: Robert Nadler [mailto:notifications@github.com] Sent: Friday, January 5, 2018 10:35 AM To: rnadler/ng2-password-strength-bar ng2-password-strength-bar@noreply.github.com Cc: CraigsterJ craig.johnson@rankipedia.com; Author author@noreply.github.com Subject: Re: [rnadler/ng2-password-strength-bar] Access the strength value? (#20)

This is essentially the same request as #17 https://github.com/rnadler/ng2-password-strength-bar/issues/17 .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rnadler/ng2-password-strength-bar/issues/20#issuecomment-355630671 , or mute the thread https://github.com/notifications/unsubscribe-auth/AIEeX7DLbzjrmg4u7NsSyrSCGKEWX0mDks5tHmtIgaJpZM4RTVWw . https://github.com/notifications/beacon/AIEeX54Z-Caip9cxYl8hburzGIW2FfSRks5tHmtIgaJpZM4RTVWw.gif

rnadler commented 6 years ago

My preference is that the component provides a strength value (e.g. 0-100) and the client application decides the definition of "valid". I.e. the Submit button could be enabled at >= 80 for some purposes, but maybe >= 95 for others.

CraigsterJ commented 6 years ago

Absolutely - that sounds great! Do you have something like that?

Thanks! Craig

On Jan 6, 2018, at 4:31 PM, Robert Nadler notifications@github.com wrote:

My preference is that the component provides a strength value (e.g. 0-100) and the client application decides the definition of "valid". I.e. the Submit button could be enabled at >= 80 for some purposes, but maybe >= 95 for others.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

johnmckay-reward commented 6 years ago

Not to be mean, but what's the point of this if you can't access the value?

rnadler commented 6 years ago

@jmkni, This project is just a simple password UI component. A popular solution that will provide you with deeper strength metircs is zxcvbn.

rnadler commented 5 years ago

Feature added in v1.2.2 (PR #23)