// Customer confirmed the link in the mail
$commentConfirmQuery =
$this->
getCommentConfirmRepository()->
getConfirmationByHashQuery($hash);
$getComment =
$commentConfirmQuery->
getOneOrNullResult();
if ($getComment) { $commentData =
unserialize($getComment->
getData(),
['allowed_classes' => false
]);
// Delete the data in the s_core_optin table. We don't need it anymore
$this->
get('models'
)->
remove($getComment);
$this->
get('models'
)->
flush();
$this->
sSaveComment($commentData,
$blogArticleId);
$this->
forward('detail'
);
return;
} $sErrorFlag['invalidHash'
] = true;
} // Validation only occurs when entering data, but not on failed Double-Opt-In
if (!
($sErrorFlag['invalidHash'
] ?? false
)) { if (empty($this->
Request()->name
)) {