New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ionic-captcha

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ionic-captcha

Arithmetic Captcha Component For Ionic 3

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Arithmetic Captcha Component For Ionic 3

This is an Ionic Angular component that ask arithmetic equation to user and check its result.

For Download

npm install ionic-captcha

Usage

Add CaptchaProvider to your AppModule and add imports from used module CaptchaComponentModule. Then add <captcha></captcha> to your html file. To use within FormControl add required validator and add form control name formControlName="captcha"

At least usage shown like below. In Html Template <captcha formControlName="captcha"></captcha> In Controller

this.formBuilder.group({
	captcha: ['', Validators.required]
});

Customization

User has 3 chance to find true solution otherwise regenerate captcha with new solution. In this 3 chance keyPress timeout is default 1500ms because of mobile platform but this is parametric. Developer change this timeout with keypressTimeout parameter.

Also there are four other parameters you can use and default values are given below.

ParameterDescriptionDefault Value
useMinusUse only plus operant or bothtrue
negativeAllowedResult can be negative numbertrue
minNumLengthMinimum number of digits of numbers1
maxNumLengthMaximum number of digits of numbers2

Keywords

Ionic3

FAQs

Package last updated on 14 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts