ReCaptchaConfig

Configuration for a ReCaptcha client.

Type: Class
Namespace: ReCaptcha.Desktop.WinUI.Configuration
Assembly: ReCaptcha.Desktop.WinUI

public class ReCaptchaConfig

Constructors

Creates a new ReCaptchaConfig.

public ReCaptchaConfig(
    string siteKey,
    string hostName,
    string language = "en",
    string tokenRecievedHtml = "Token recieved: %token%",
    string tokenRecievedHookedHtml = "Token recieved and sent to application.",
    HttpServerConfig? httpConfiguration = null)
ParameterDescription
string siteKeyThe SiteKey for the Google reCAPTCHA service.
string hostNameThe name of the virtual host on which the reCAPTCHA is hosted. Should represent your application.
string languageThe language for the Google reCAPTCHA service.
string tokenRecievedHtmlThe HTML which gets displayed after the user verifed the reCAPTCHA. Use %token% to embed the token inside the message.
string tokenRecievedHookedHtmlThe HTML which gets displayed after the user verifed the reCAPTCHA and its hooked to the application. Use %token% to embed the token inside the message.
HttpServerConfig? httpConfigurationThe configuration for the HttpServer.

Properties

SiteKey

The SiteKey for the Google reCAPTCHA service

Type: string
Modifier: none
Default Value: none

HostName

The name of the virtual host on which the reCAPTCHA is hosted. Should represent your application.

Type: string
Modifier: none
Default Value: none

Language

The language for the Google reCAPTCHA service.

Type: string
Modifier: none
Default Value: en

TokenRecievedHtml

The HTML which gets displayed after the user verifed the reCAPTCHA. Use %token% to embed the token inside the message.

Type: string
Modifier: none
Default Value: Token recieved: %token%

TokenRecievedHookedHtml

The HTML which gets displayed after the user verifed the reCAPTCHA and its hooked to the application. Use %token% to embed the token inside the message.

Type: string
Modifier: none
Default Value: Token recieved and sent to application.

TokenRecievedHookedHtml

The configuration for the HttpServer

Type: HttpServerConfig
Modifier: none
Default Value: new()