/**
* Pre dispatch method
*/
public function preDispatch() { $this->
Response()->
setHeader('x-robots-tag', 'noindex'
);
} public function refreshCaptchaAction() { $this->
Front()->
Plugins()->
ViewRenderer()->
setNoRender();
$legacyCaptcha =
$this->container->
get('shopware.captcha.legacy_captcha'
);
$templateData =
$legacyCaptcha->
getTemplateData();
$img =
$templateData['img'
];
$rand =
$templateData['sRand'
];
$body = '<img src="data:image/png;base64,' .
$img . '" alt="Captcha" />';
$body .= '<input type="hidden" name="sRand" value="' .
$rand . '" />';
$this->
Response()->
setContent($body);
}