Socket
Socket
Sign inDemoInstall

react-simple-captcha

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-simple-captcha - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

2

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

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

@@ -105,7 +105,7 @@ # React Simple Captcha

| ------ | ------ |
| **<LoadCanvasTemplate />** | It will load the captcha **with 'Reload Captcha'** functionality. Place between your render code, usage example **{ReactHtmlParser(LoadCanvasTemplate)}** |
| **<LoadCanvasTemplateNoReload />** | It will load the captcha **without 'Reload Captcha'** functionality. Place between your render code, usage example **{ReactHtmlParser(LoadCanvasTemplateNoReload)}** |
| **loadcaptchaenginge(*Number_Of_Captcha_Charcters*);** | Simply paste it in **componentDidMount()**. Pass number of captcha characters you want to display. |
| **validateCaptcha(*User_Submitted_Value*)** | Will return *true* if user submitted value matches with captcha otherwise *false*. Also will reload captcha if user submitted value is *false* |
| **validateCaptcha(*User_Submitted_Value*, *false*)** | Will return *true* if user submitted value matches with captcha otherwise *false*. Will not reload captcha if user submitted value is *false* |
| <LoadCanvasTemplate /> | It will load the captcha **with 'Reload Captcha'** functionality. Place between your render code, usage example **{ReactHtmlParser(LoadCanvasTemplate)}** |
| <LoadCanvasTemplateNoReload /> | It will load the captcha **without 'Reload Captcha'** functionality. Place between your render code, usage example **{ReactHtmlParser(LoadCanvasTemplateNoReload)}** |
| loadcaptchaenginge(*Number_Of_Captcha_Charcters*); | Simply paste it in **componentDidMount()**. Pass number of captcha characters you want to display. |
| validateCaptcha(*User_Submitted_Value*) | Will return *true* if user submitted value matches with captcha otherwise *false*. Also will reload captcha if user submitted value is *false* |
| validateCaptcha(*User_Submitted_Value*, *false*) | Will return *true* if user submitted value matches with captcha otherwise *false*. Will not reload captcha if user submitted value is *false* |

@@ -112,0 +112,0 @@ ### Example

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc