Track CAPTCHA setting to Mixpanel

[MAILPOET-6187]
This commit is contained in:
 Ján Mikláš
2024-08-09 14:07:56 +02:00
committed by Rostislav Wolný
parent 172ffb7b61
commit 8ec7333a34
2 changed files with 3 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ class CaptchaConstants {
const TYPE_RECAPTCHA = 'recaptcha';
const TYPE_RECAPTCHA_INVISIBLE = 'recaptcha-invisible';
const TYPE_DISABLED = null;
const TYPE_SETTING_NAME = 'captcha.type';
public static function isReCaptcha(?string $captchaType) {
return in_array($captchaType, [self::TYPE_RECAPTCHA, self::TYPE_RECAPTCHA_INVISIBLE]);