Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new captcha: cloudflare turnstile #22369

Merged
merged 14 commits into from
Feb 5, 2023
Prev Previous commit
Next Next commit
Change from inline css to using css class
Signed-off-by: ByLCY <bylcy@bylcy.dev>
  • Loading branch information
ByLCY committed Jan 18, 2023
commit 8c634337822b44709610e4045cf2c78d4e3238da
2 changes: 1 addition & 1 deletion templates/user/auth/captcha.tmpl
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
<div class="m-captcha" data-sitekey="{{.McaptchaSitekey}}" data-instance-url="{{.McaptchaURL}}"></div>
</div>
{{else if eq .CaptchaType "cfturnstile"}}
<div class="inline field captcha-field" style="text-align: center">
<div class="inline field captcha-field tc">
<div class="cf-turnstile" data-sitekey="{{.CfTurnstileSitekey}}"></div>
</div>
{{end}}{{end}}