You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go to View > Other Windows > Package Manager Console
Execute the following command:
Install-Package CaptchaCore -Version 1.0.0
Add and configure
Add the CaptchaCore to the services collection in the Startup.ConfigureServices method:
publicvoidConfigureServices(IServiceCollectionservices){// This is add CaptchaCore with default settingsservices.AddCaptchaCore();services.AddControllers();}
Or:
publicvoidConfigureServices(IServiceCollectionservices){// This is add CaptchaCore with customized settingsservices.AddCaptchaCore(newCaptchaSettings{Issuer="YourApplicationName",CryptoKey="thisisdefaultcryptokey",ExpirationInSeconds=300,PermittedLetters="0123456789",CodeLength=5,});services.AddControllers();}