Avoiding check that as_url is globally set (fixes #46)
This commit is contained in:
parent
34de9cd753
commit
95342e80a9
@ -28,7 +28,7 @@ class CaptchaController extends Controller
|
||||
$whitelistKey = $options['whitelist_key'];
|
||||
$isOk = false;
|
||||
|
||||
if ($options['as_url'] && $session->has($whitelistKey)) {
|
||||
if ($session->has($whitelistKey)) {
|
||||
$keys = $session->get($whitelistKey);
|
||||
if (is_array($keys) && in_array($key, $keys)) {
|
||||
$isOk = true;
|
||||
|
Loading…
Reference in New Issue
Block a user