Fix minor PR remarks [MAILPOET-2015]
Reuse updateCaptcha() function Inject Captcha class using DI Add no-cache headers to captcha image Fix an error when accessing the captcha page directly Edit the line in settings regarding missing dependencies
This commit is contained in:
@ -292,6 +292,9 @@ class Pages {
|
||||
|
||||
$form_id = isset($_SESSION[Captcha::SESSION_FORM_KEY]['form_id']) ? (int)$_SESSION[Captcha::SESSION_FORM_KEY]['form_id'] : 0;
|
||||
$form_model = FormModel::findOne($form_id);
|
||||
if (!$form_model instanceof FormModel) {
|
||||
return false;
|
||||
}
|
||||
$form_model = $form_model->asArray();
|
||||
|
||||
$form_html = '<form method="POST" ' .
|
||||
|
Reference in New Issue
Block a user