Add captcha page [MAILPOET-2015]

This commit is contained in:
wxa
2019-07-03 13:49:55 +03:00
committed by M. Shull
parent f8ea514887
commit 08af443c1f
9 changed files with 148 additions and 6 deletions

View File

@@ -111,6 +111,8 @@ abstract class Base {
protected static function getFieldName($block = []) {
if ((int)$block['id'] > 0) {
return 'cf_' . $block['id'];
} elseif (isset($block['params']['obfuscate']) && !$block['params']['obfuscate']) {
return $block['id'];
} else {
$obfuscator = new FieldNameObfuscator();
return $obfuscator->obfuscate($block['id']);//obfuscate field name for spambots