Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions captcha-config.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Configuration options for IconCaptcha library.
*
Expand Down
4 changes: 0 additions & 4 deletions core/modules/captcha/captcha-request.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
use IconCaptcha\IconCaptcha;

try {

// Start a session.
// * Only required when using any 'session' driver in the configuration.
session_start();
Expand All @@ -48,9 +47,6 @@
// Request was not supported/recognized.
http_response_code(400);
} catch (Throwable $exception) {

http_response_code(500);

// Add your custom error logging handling here.

}
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ public function getExample()
$out .= '

<!-- Include the assets. Change the paths accordingly or use the CDN assets. -->
<link href="'.dol_buildpath('/easytooltip/iconcaptcha/client/css/iconcaptcha.min.css', 1).'" rel="stylesheet" type="text/css">
<script src="'.dol_buildpath('/easytooltip/iconcaptcha/client//js/iconcaptcha.min.js', 1).'" type="text/javascript"></script>
<link href="' . dol_buildpath('/easytooltip/iconcaptcha/client/css/iconcaptcha.min.css', 1) . '" rel="stylesheet" type="text/css">
<script src="' . dol_buildpath('/easytooltip/iconcaptcha/client//js/iconcaptcha.min.js', 1) . '" type="text/javascript"></script>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function() {
IconCaptcha.init(".iconcaptcha-widget", {
general: {
endpoint: "'.dol_buildpath('/easytooltip/core/modules/captcha/captcha-request.php', 1).'",
endpoint: "' . dol_buildpath('/easytooltip/core/modules/captcha/captcha-request.php', 1) . '",
fontFamily: "inherit",
showCredits: false,
},
Expand All @@ -115,17 +115,17 @@ public function getExample()
},
locale: {
initialization: {
verify: "'.$langs->trans('VerifyThatYouAreHuman').'",
verify: "' . $langs->trans('VerifyThatYouAreHuman') . '",
loading: "Loading challenge...",
},
header: "'.$langs->trans('SelectTheImageDisplayed').'",
header: "' . $langs->trans('SelectTheImageDisplayed') . '",
correct: "Verification complete.",
incorrect: {
title: "Uh oh.",
subtitle: "You\'ve selected the wrong image.",
},
timeout: {
title: "'.$langs->trans('PleaseWait').'",
title: "' . $langs->trans('PleaseWait') . '",
subtitle: "You made too many incorrect selections."
}
}
Expand Down Expand Up @@ -160,13 +160,13 @@ public function getCaptchaCodeForForm($php_self = '')
$out .= '

<!-- Include the assets. Change the paths accordingly or use the CDN assets. -->
<link href="'.dol_buildpath('/easytooltip/iconcaptcha/client/css/iconcaptcha.min.css', 1).'" rel="stylesheet" type="text/css">
<script src="'.dol_buildpath('/easytooltip/iconcaptcha/client//js/iconcaptcha.min.js', 1).'" type="text/javascript"></script>
<link href="' . dol_buildpath('/easytooltip/iconcaptcha/client/css/iconcaptcha.min.css', 1) . '" rel="stylesheet" type="text/css">
<script src="' . dol_buildpath('/easytooltip/iconcaptcha/client//js/iconcaptcha.min.js', 1) . '" type="text/javascript"></script>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function() {
IconCaptcha.init(".iconcaptcha-widget", {
general: {
endpoint: "'.dol_buildpath('/easytooltip/core/modules/captcha/captcha-request.php', 1).'",
endpoint: "' . dol_buildpath('/easytooltip/core/modules/captcha/captcha-request.php', 1) . '",
fontFamily: "inherit",
showCredits: false,
},
Expand All @@ -180,17 +180,17 @@ public function getCaptchaCodeForForm($php_self = '')
},
locale: {
initialization: {
verify: "'.$langs->trans('VerifyThatYouAreHuman').'",
verify: "' . $langs->trans('VerifyThatYouAreHuman') . '",
loading: "Loading challenge...",
},
header: "'.$langs->trans('SelectTheImageDisplayed').'",
header: "' . $langs->trans('SelectTheImageDisplayed') . '",
correct: "Verification complete.",
incorrect: {
title: "Uh oh.",
subtitle: "You\'ve selected the wrong image.",
},
timeout: {
title: "'.$langs->trans('PleaseWait').'",
title: "' . $langs->trans('PleaseWait') . '",
subtitle: "You made too many incorrect selections."
}
}
Expand Down
Loading