Skip to content

Commit

Permalink
Update register to pull in the recaptcha script tag
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Tracey <craig@arctir.com>
  • Loading branch information
craigtracey committed Jan 12, 2024
1 parent 16ea06c commit 02c3dec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions theme/keywind/login/register.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<#import "components/atoms/form.ftl" as form>
<#import "components/atoms/input.ftl" as input>
<#import "components/atoms/link.ftl" as link>
<#import "components/molecules/recaptcha.ftl" as recaptcha>

<@layout.registrationLayout
displayMessage=!messagesPerField.existsError("firstName", "lastName", "email", "username", "password", "password-confirm")
Expand Down Expand Up @@ -71,9 +72,9 @@
type="password"
/>
</#if>
<#if recaptchaRequired??>
<div class="g-recaptcha" data-sitekey="${recaptchaSiteKey}" data-size="compact"></div>
</#if>

<@recaptcha.kw recaptchaRequired=recaptchaRequired?? recaptchaSiteKey=recaptchaSiteKey />

<@buttonGroup.kw>
<@button.kw color="primary" type="submit">
${msg("doRegister")}
Expand Down

0 comments on commit 02c3dec

Please sign in to comment.