* @copyright 2007-2020 PrestaShop SA * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA */ /** * @since 1.5.0 * * @property Ps_Emailsubscription $module */ class Ps_EmailsubscriptionVerificationModuleFrontController extends ModuleFrontController { private $message = ''; /** * @see FrontController::postProcess() */ public function postProcess() { $this->message = $this->module->confirmEmail(Tools::getValue('token')); } /** * @see FrontController::initContent() */ public function initContent() { parent::initContent(); $this->context->smarty->assign('message', $this->message); $this->setTemplate('module:ps_emailsubscription/views/templates/front/verification_execution.tpl'); } }