Socket
Socket
Sign inDemoInstall

angular-captcha

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-captcha - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

2

package.json
{
"name": "angular-captcha",
"version": "3.0.2",
"version": "3.0.3",
"description": "BotDetect Captcha Angular Module (TypeScript / Angular 2/4/5+)",

@@ -5,0 +5,0 @@ "scripts": {

## BotDetect Captcha Angular Module (TypeScript / Angular 2/4/5+)
### Requirements:
Captcha Angular module requires Captcha library to generate image&sound Captcha challenges. Currently, it works with [BotDetect Java Captcha library](https://captcha.com/java-captcha.html), but ASP.NET and PHP libraries are coming soon.
Captcha Angular module requires Captcha library to generate image&sound Captcha challenges. Currently, it works with [BotDetect Java Captcha library](https://captcha.com/java-captcha.html) and [BotDetect PHP Captcha library](https://captcha.com/php-captcha.html), but ASP.NET library is coming soon.

@@ -27,2 +27,3 @@ ### Quickstart:

##### Step 3: Declare Captcha Angular Module
- Java Captcha endpoint:
```typescript

@@ -42,2 +43,17 @@ import { BotDetectCaptchaModule } from 'angular-captcha';

- PHP Captcha endpoint:
```typescript
import { BotDetectCaptchaModule } from 'angular-captcha';
@NgModule({
imports: [
...
BotDetectCaptchaModule.forRoot({
captchaEndpoint: '/botdetect-php-captcha-api-path-at-server-side/simple-botdetect.php'
})
],
...
})
```
##### Step 4: Displaying the Captcha Challenge

@@ -62,3 +78,3 @@ ```html

If you have [Java Captcha](https://captcha.com/java-captcha.html) library on a server side validation would look similar to this:
- If you have [Java Captcha](https://captcha.com/java-captcha.html) library on a server side validation would look similar to this:
```java

@@ -69,2 +85,9 @@ // validate captcha

```
- If you have [PHP Captcha](https://captcha.com/php-captcha.html) library on a server side validation would look similar to this:
```php
$captcha = new SimpleCaptcha();
$isHuman = $captcha->Validate($captchaCode, $captchaId);
```
### Documentation:

@@ -71,0 +94,0 @@

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