C5-8.2.1: How to check programmatically which Captcha library is chosen in Dashboard?

Permalink
Hi,

Anyone know how to check programmatically which Captcha library is selected in the Dashboard?

Thank you.

linuxoid
 
shahroq replied on at Permalink Reply
shahroq
Hi,
[header] use Concrete\Core\Captcha\Library as SystemCaptchaLibrary;
//get active captcha
$scl = SystemCaptchaLibrary::getActive();
//get list of captchas
$list = SystemCaptchaLibrary::getList();
linuxoid replied on at Permalink Reply
linuxoid
Hi,

These return Library objects. I also tried getSystemCaptchaLibraryName(), but it throws an error: "Using $this when not in object context".

I just want to check what captcha libraries are installed and which one is selected.