Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<script src="https://js.hcaptcha.com/1/api.js?render=explicit&onload=captchaOnload" async defer></script>
<div id="h-captcha" data-sitekey="{{ config('settings.captcha_site_key') }}"></div>
<script>
function captchaOnload() {
// On livewire validation error reset captcha
Livewire.hook('request', ({
succeed,
fail
}) => {
succeed(() => {
hcaptcha.reset();
});
})
hcaptcha.render('h-captcha', {
sitekey: '{{ config('settings.captcha_site_key') }}',
callback: function(token) {
@this.set('captcha', token, false)
},
});
}
</script>