ng-password-strength icon indicating copy to clipboard operation
ng-password-strength copied to clipboard

Doesn't work if validation attributtes are on the password input type?

Open damiangreen opened this issue 10 years ago • 2 comments

Due to angular not binding to the model until ng-required, and ng-pattern are satisfied, the password strength attribute does nothing, until they are satisfied. Is there a way around this? Does your directive allow for pattern parameters?

{{user.Password}}

damiangreen avatar Nov 16 '15 12:11 damiangreen

A workaround is to add ng-model-options="{ allowInvalid: true } to the password input field

<input type="password" ng-model-options="{ allowInvalid: true }"

damiangreen avatar Nov 16 '15 13:11 damiangreen

The directive is not allowing patterns right now but you're welcome to do it and make a pull request.

Thanks a lot!

subarroca avatar Jan 03 '16 01:01 subarroca