recaptchaWidget

fun FlowContent.recaptchaWidget(config: RecaptchaConfig)

Renders the reCAPTCHA widget <div> in the HTML body if reCAPTCHA is enabled and both the site key and secret key are configured (kept in lockstep with server-side verification).

This is an extension function on kotlinx.html FlowContent.

Parameters

config

the RecaptchaConfig providing the site key and enabled status.