Merge branch '641-invis-recaptcha' into 'master'
Resolve "Invisible Recapcha is not working" See merge request mike-koch/Mods-for-HESK!106
This commit is contained in:
commit
11d6213208
12
index.php
12
index.php
@ -1228,12 +1228,6 @@ function print_add_ticket()
|
||||
<!-- >
|
||||
<input type="text" name="phone" value="3" />
|
||||
< -->
|
||||
</form>
|
||||
<script>
|
||||
buildValidatorForTicketSubmission("form1",
|
||||
"<?php echo addslashes($hesklang['select_at_least_one_value']); ?>");
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
// Use Invisible reCAPTCHA?
|
||||
@ -1243,8 +1237,12 @@ function print_add_ticket()
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</form>
|
||||
<script>
|
||||
buildValidatorForTicketSubmission("form1",
|
||||
"<?php echo addslashes($hesklang['select_at_least_one_value']); ?>");
|
||||
</script>
|
||||
</div>
|
||||
<?php if ($columnWidth == 'col-md-10 col-md-offset-1'): ?>
|
||||
<div class="col-md-1"> </div></div>
|
||||
<?php endif; ?>
|
||||
|
@ -91,7 +91,7 @@ if ($hesk_settings['secimg_use'] && !isset($_SESSION['img_verified'])) {
|
||||
|
||||
// Was there a reCAPTCHA response?
|
||||
if (isset($_POST["g-recaptcha-response"])) {
|
||||
$resp = $reCaptcha->verifyResponse($_SERVER["REMOTE_ADDR"], hesk_POST("g-recaptcha-response"));
|
||||
$resp = $reCaptcha->verifyResponse(hesk_getClientIP(), hesk_POST("g-recaptcha-response"));
|
||||
}
|
||||
|
||||
if ($resp != null && $resp->success) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user