Socket
Socket
Sign inDemoInstall

react-simple-captcha

Package Overview
Dependencies
6
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.4 to 3.1.5

2

package.json
{
"name": "react-simple-captcha",
"version": "3.1.4",
"version": "3.1.5",
"description": "A very simple and powerful captcha for ReactJS",

@@ -5,0 +5,0 @@ "main": "react-simple-captcha.js",

@@ -17,6 +17,6 @@ # React Simple Captcha

- **Prerequisite**
**Usage Guide**
**react-html-parser**
- **Step 1**
Install 'react-html-parser'
<p>Install 'react-html-parser'</p>
```sh

@@ -27,11 +27,11 @@ $ npm install react-html-parser

- **Step 2**
Import 'react-html-parser'
<p>Import 'react-html-parser'</p>
```sh
import ReactHtmlParser from 'react-html-parser';
```
<p></p>
**react-simple-captcha**
- **Step 3**
Import all functions from react-simple-captcha
<p>Import all functions from react-simple-captcha</p>
```sh

@@ -42,3 +42,3 @@ import { loadcaptchaenginge, LoadCanvasTemplate, LoadCanvasTemplateNoReload, validateCaptcha } from 'react-simple-captcha';

- **Step 4**
Place **LoadCanvasTemplate** or **LoadCanvasTemplateNoReload** *(if you do not want 'Reload Captcha' functionality)* in your render code in the function ReactHtmlParser()
<p>Place **LoadCanvasTemplate** or **LoadCanvasTemplateNoReload** *(if you do not want 'Reload Captcha' functionality)* in your render code in the function ReactHtmlParser()</p>

@@ -62,3 +62,3 @@ ```sh

- **Step 5**
Paste **loadcaptchaenginge(6)** *(You can change 6 to number of captcha charcters you want)* in **componentDidMount**
<p>Paste **loadcaptchaenginge(6)** *(You can change 6 to number of captcha charcters you want)* in **componentDidMount**</p>
```sh

@@ -70,3 +70,3 @@ componentDidMount () {

- **Step 6**
Validate captcha by using **validateCaptcha(user_captcha_value)**
<p>Validate captcha by using **validateCaptcha(user_captcha_value)** </p>
```sh

@@ -86,3 +86,3 @@ doSubmit = () => {

**OR**
If you don't watch captcha to be reloaded if user enter the wrong value then set second parameter to *false* **validateCaptcha(user_captcha_value, false)**
<p>If you don't watch captcha to be reloaded if user enter the wrong value then set second parameter to *false* **validateCaptcha(user_captcha_value, false)** </p>
```sh

@@ -89,0 +89,0 @@ doSubmit = () => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc