angular-captcha
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "angular-captcha", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "BotDetect Captcha Angular Module (TypeScript / Angular 2+)", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -9,3 +9,3 @@ ## BotDetect Captcha Angular Module (TypeScript / Angular 2+) | ||
##### Step 1: Install Captcha Angular Module | ||
``` | ||
```sh | ||
npm install angular-captcha --save | ||
@@ -15,3 +15,3 @@ ``` | ||
If you use SystemJS, declare the following in your SystemJS config file: | ||
``` | ||
```js | ||
map: { | ||
@@ -29,3 +29,3 @@ ... | ||
##### Step 3: Declare Captcha Angular Module | ||
``` | ||
```ts | ||
import { BotDetectCaptchaModule } from 'angular-captcha'; | ||
@@ -45,3 +45,3 @@ | ||
##### Step 4: Displaying the Captcha Challenge | ||
``` | ||
```html | ||
<botdetect-captcha styleName="exampleCaptcha"></botdetect-captcha> | ||
@@ -51,3 +51,3 @@ ``` | ||
##### Step 5: Client-side Captcha Validation | ||
``` | ||
```html | ||
<input | ||
@@ -66,3 +66,3 @@ type="text" | ||
If you have [Java Captcha](https://captcha.com/java-captcha.html) library on a server side validation would look similar to this: | ||
``` | ||
```java | ||
// validate captcha | ||
@@ -69,0 +69,0 @@ SimpleCaptcha captcha = SimpleCaptcha.load(request); |
49845