Handle captcha during subscription [MAILPOET-2015]

This commit is contained in:
wxa
2019-07-04 20:19:00 +03:00
committed by M. Shull
parent 08af443c1f
commit b174a55d07
11 changed files with 194 additions and 37 deletions

View File

@@ -177,6 +177,9 @@ class Populator {
'confirmation' => $mailpoet_page_id,
'captcha' => $mailpoet_page_id,
]);
} elseif (empty($subscription['captcha'])) {
// For existing installations
$this->settings->set('subscription.pages', array_merge($subscription, ['captcha' => $mailpoet_page_id]));
}
}