Coder Social home page Coder Social logo

angular-ngcomplexify's Introduction

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.

    <script src="angular.min.js"></script>
    <script src="angular-ngcomplexify.min.js"></script>
    <script src="yourApp.js"></script>

Then inject the module into your application:

angular.module('yourApp',['ngComplexify']);

Include the complexify attribute directive in your password input. e.g.

<input
  type="password"
  ng-model="somemodel"
  complexify
  complexify-common-passwords="true"
  complexify-min-length="8" <!-- optional -->
  complexify-css-attribute="background-color" <!-- optional -->
/>

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)

angular-ngcomplexify's People

Contributors

avraammavridis avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.