Track CAPTCHA setting to Mixpanel
[MAILPOET-6187]
This commit is contained in:
committed by
Rostislav Wolný
parent
172ffb7b61
commit
8ec7333a34
@@ -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]);
|
||||
|
Reference in New Issue
Block a user