Skip to content

An angularjs 2 component for displaying the CAPTCHA to the user and calling the service for validation

License

Notifications You must be signed in to change notification settings

yilinglu/MyGovBC-CAPTCHA-Widget

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyGovBC-Captcha-Widget Angular2

This is just the user interface part of an overall solution, for service component see:

Installing

First get the component via NPM:

npm install git+https://github.com/bcgov/MyGovBC-CAPTCHA-Widget.git

Add to your AngularJS module declaration:

let CaptchaComponent = require("mygovbc-captcha-widget/component").CaptchaComponent;
...
  declarations: [..., CaptchaComponent, ...]

Then use on a template:

<div class="row">
    <captcha [apiBaseUrl]="captchaApiBaseUrl" [nonce]="<optional string to get signed by the server>"
             (onValidToken)="authorizationToken = $event"></captcha>
</div>

About

An angularjs 2 component for displaying the CAPTCHA to the user and calling the service for validation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 79.2%
  • JavaScript 15.1%
  • HTML 5.1%
  • CSS 0.6%