forked from pollen8/fabrik
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed captcha plugin to use Composer racaptcha (nocaptcha) lib inst…
…ead of static. Confirmed v2 use, ahead of impending death of v1.
- Loading branch information
1 parent
a44dee7
commit 99dd24c
Showing
37 changed files
with
1,832 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"require": { | ||
"google/recaptcha": "~1.1" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
plugins/fabrik_element/captcha/layouts/fabrik-element-captcha-nocaptcha-invisible.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
defined('JPATH_BASE') or die; | ||
|
||
$d = $displayData; | ||
?> | ||
<script> | ||
function nocaptchaSubmitForm() { | ||
Fabrik.getBlock('<?php echo $d->formId; ?>').doSubmit(); | ||
} | ||
</script> | ||
|
||
<div class ="g-recaptcha" data-sitekey="<?php echo $d->site_key; ?>" data-bind="<?php echo $d->btnId; ?>" data-callback="nocaptchaSubmitForm"></div> | ||
|
||
<script src="https://www.google.com/recaptcha/api.js?hl=<?php echo $d->lang; ?>" async defer></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
// autoload.php @generated by Composer | ||
|
||
require_once __DIR__ . '/composer/autoload_real.php'; | ||
|
||
return ComposerAutoloaderInit87f051b7c7baf609b29e5e7f79ec515a::getLoader(); |
Oops, something went wrong.