recaptchaWidget

fun FlowContent.recaptchaWidget(config: RecaptchaConfig)

Renders the reCAPTCHA widget <div> in the HTML body if reCAPTCHA is enabled and a site key is configured.

This is an extension function on kotlinx.html FlowContent.

Parameters

config

the RecaptchaConfig providing the site key and enabled status.