https://github.com/avraammavridis/angular-ngcomplexify
Determines the complexity of the given password and modifies a css attribute of the input
https://github.com/avraammavridis/angular-ngcomplexify
Last synced: 6 months ago
JSON representation
Determines the complexity of the given password and modifies a css attribute of the input
- Host: GitHub
- URL: https://github.com/avraammavridis/angular-ngcomplexify
- Owner: AvraamMavridis
- Created: 2015-07-09T20:44:23.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-13T05:26:00.000Z (almost 10 years ago)
- Last Synced: 2025-03-30T06:02:07.509Z (6 months ago)
- Size: 227 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Angular ngComplexify
version 0.2
ngComplexify is a module/directive that determines the complexity of a
given password, it emits an event on the scope with the persentance of the password complexity.
Also it has the ability to check agains 10.000 common passwords.### Installation
Download and place the script before your angular application script and after the core angular module.
```html
```
Then inject the module into your application:```js
angular.module('yourApp',['ngComplexify']);
```Include the `complexify` attribute directive in your password input.
e.g.
```htmlcomplexify-css-attribute="background-color"
/>
```### Event
You can listen to the `$scope.$emit('passwordComplexity', complexity)` event.
### Options
| Options | Type | Explanation |
| ------------- |:-------------:| -----:|
| `ng-model` | string | required |
| `complexify-common-passwords` | boolean | Check again 10.000 common passwords (default: true) |
| `complexify-min-length`| number | Minumum password length (optional) |
| `complexify-css-attribute`| string | The css attribute of which the color will change (optional) |