AudioCaptchaCore
Audio Captcha for AspNet Core MVC
Install / Use
/learn @pigivc/AudioCaptchaCoreREADME
AudioCaptchaCore
Audio Captcha for AspNet Core MVC
Enable Audio feature only if you are gonna host your asp.net core app in windows platform. or disable audio or implement your own tts audio relative to your selected hosting platform!
Sample project included!
<h1>Instructions</h1>and be sure to copy 'ttsExec.exe' and 'libmp3lame.64.dll' 'libmp3lame.32.dll' (Included in nuget package) in bin directory of main project<<<<<<<<<
- Add a <pre>Pigi.Captcha.dll</pre> reference to your project. or Install via Nuget Package Manager:
-
In startup.cs file or your asp.net core project add <pre>@using Pigi.Captcha</pre> at the top.
-
Add <pre>services.AddPigiCaptcha();</pre> to the <pre>ConfigureServices</pre> method.
-
Add <pre>app.ConfigPigiCaptcha();</pre> to the <pre>Configure</pre> method.
-
When hosting make sure <pre>Load User Profile</pre> is set to <pre>true</pre> in your IIS application pool > advanced settings (this is not required if you disable audio feature)
-
Sample use in a view.cshtm:
or
<pre><captcha for-id="c2" for-textLength="9" for-showInput="false" for-textStyle="TextStyle.Numeric"></captcha></pre>-
You can configure other settings.
-
Then validate captcha in code like this:
<a href="http://captcha.pigivc.ir" target="_blank" >Demo</a>
