File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 9
9
</div>
10
10
{{else if eq .CaptchaType "recaptcha"}}
11
11
<div class="inline field required">
12
- <div id="captcha" captcha-type="g-recaptcha" class="g-recaptcha-style" data-sitekey="{{.RecaptchaSitekey}}"></div>
12
+ <div id="captcha" data- captcha-type="g-recaptcha" class="g-recaptcha-style" data-sitekey="{{.RecaptchaSitekey}}"></div>
13
13
</div>
14
14
{{else if eq .CaptchaType "hcaptcha"}}
15
15
<div class="inline field required">
16
- <div id="captcha" captcha-type="h-captcha" class="h-captcha-style" data-sitekey="{{.HcaptchaSitekey}}"></div>
16
+ <div id="captcha" data- captcha-type="h-captcha" class="h-captcha-style" data-sitekey="{{.HcaptchaSitekey}}"></div>
17
17
</div>
18
18
{{else if eq .CaptchaType "mcaptcha"}}
19
19
<div class="inline field df ac db-small captcha-field">
20
20
<span>{{.locale.Tr "captcha"}}</span>
21
21
<div class="border-secondary w-100-small" id="mcaptcha__widget-container" style="width: 50%; height: 5em"></div>
22
- <div id="captcha" captcha-type="m-captcha" class="m-captcha" data-sitekey="{{.McaptchaSitekey}}" data-instance-url="{{.McaptchaURL}}"></div>
22
+ <div id="captcha" data- captcha-type="m-captcha" class="m-captcha" data-sitekey="{{.McaptchaSitekey}}" data-instance-url="{{.McaptchaURL}}"></div>
23
23
</div>
24
24
{{else if eq .CaptchaType "cfturnstile"}}
25
25
<div class="inline field captcha-field tc">
26
- <div id="captcha" captcha-type="cf-turnstile" data-sitekey="{{.CfTurnstileSitekey}}"></div>
26
+ <div id="captcha" data- captcha-type="cf-turnstile" data-sitekey="{{.CfTurnstileSitekey}}"></div>
27
27
</div>
28
28
{{end}}{{end}}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export async function initCaptcha() {
12
12
theme : isDark ? 'dark' : 'light'
13
13
} ;
14
14
15
- switch ( captchaEl . getAttribute ( 'captcha-type' ) ) {
15
+ switch ( captchaEl . getAttribute ( 'data- captcha-type' ) ) {
16
16
case 'g-recaptcha' : {
17
17
if ( window . grecaptcha ) {
18
18
window . grecaptcha . ready ( ( ) => {
You can’t perform that action at this time.
0 commit comments