Skip to content

bolkhovsky/SweetCaptcha.Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attention! The sweetCAPTCHA script is responsible for unwanted and potentially malicious popups (as it is investigated by Denis Sinegubko and other fellows). It was OK when I created this integration, but since 2015 it was screwed up. Use it on your own risk (or simply do not use it)!

sweetCaptcha .NET SDK

What's this?

sweetCaptcha is a free captcha service putting the users and your website at first priority. This is a new and fresh graphical captcha focused on enhanced user experience, so instead of using difficult and boring text, SweetCaptcha offers a

SweetCaptcha

See a live demo here

Installation

A compiled library is available via NuGet

To install via the nuget package console

Install-Package SweetCaptcha.Net

Usage

  1. Install library to your ASP.NET application via NuGet
  2. Obtain your AppId and AppSecret by registering on SweetCaptcha website
  3. Add following settings to your web.config file:
<add key="sweetcaptchaHost" value="http://sweetcaptcha.com/api" />
<add key="sweetcaptchaAppId" value="your_key" />
<add key="sweetcaptchaAppSecret" value="your_secret" />
  1. Create instance of SweetCaptcha class in your code. See the Sample app for the example.
var sweetcaptcha = new SweetCaptcha.SweetCaptcha(
  ConfigurationManager.AppSettings["sweetcaptchaHost"],
  ConfigurationManager.AppSettings["sweetcaptchaAppId"],
  ConfigurationManager.AppSettings["sweetcaptchaAppSecret"]);

Public methods

  1. public async Task<string> GetHtml(string language, bool isAutoSubmit = false);
  2. public async Task<bool> Check(string sckey, string scvalue);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published