$voteConfirmed = false;
$hash =
$this->
Request()->
getParam('sConfirmation'
);
if ($hash) { $getVote =
$this->container->
get('db'
)->
fetchRow( 'SELECT * FROM s_core_optin WHERE hash = ?',
[$hash] );
if (!
empty($getVote['data'
])) { $this->container->
get('front'
)->
ensureRequest()->
setPost(unserialize($getVote['data'
],
['allowed_classes' => false
]));
$voteConfirmed = true;
$this->container->
get('db'
)->
query('DELETE FROM s_core_optin WHERE hash = ?',
[$hash]);
} } if (empty($this->container->
get('front'
)->
ensureRequest()->
getPost('sVoteSummary'
))) { $sErrorFlag['sVoteSummary'
] = true;
} if (!
$voteConfirmed) { $captchaValidator =
$this->container->
get('shopware.captcha.validator'
);