RecaptchaValidation.Validate method
namespace: Serenity.Web assembly: Serenity.Net.Web
Validates a recaptcha token
public static void Validate(string secretKey, string token, ITextLocalizer localizer)
parameter | description |
---|---|
secretKey | Secret key |
token | Token |
localizer | Text localizer |
Remarks
Inspired from https://github.com/tanveery/recaptcha-net/blob/master/src/Recaptcha.Web/RecaptchaVerificationHelper.cs
See Also
- interface ITextLocalizer
- class RecaptchaValidation