public function resendToken(Contao\DataContainer $dc)
	{
		$model = Contao\OptInModel::findByPk($dc->id);

		Contao\System::getContainer()->get('contao.opt-in')->find($model->token)->send();
		Contao\Message::addConfirmation(sprintf($GLOBALS['TL_LANG']['MSC']['resendToken'], $model->email));
		Contao\Controller::redirect($this->getReferer());
	}
public function resendToken(Contao\DataContainer $dc)
	{
		$model = Contao\OptInModel::findByPk($dc->id);

		Contao\System::getContainer()->get('contao.opt-in')->find($model->token)->send();
		Contao\Message::addConfirmation(sprintf($GLOBALS['TL_LANG']['MSC']['resendToken'], $model->email));
		Contao\Controller::redirect($this->getReferer());
	}
public function resendToken ( Contao \ DataContainer $ dc ) { $ model = Contao \ OptInModel :: findByPk ( $ dc -> id ) ; Contao \ System :: getContainer ( ) -> get ( 'contao.opt-in' ) -> find ( $ model -> token ) -> send ( ) ; Contao \ Message :: addConfirmation ( sprintf ( $ GLOBALS [ 'TL_LANG' ] [ 'MSC' ] [ 'resendToken' ] , $ model -> email ) ) ; Contao \ Controller :: redirect ( $ this -> getReferer ( ) ) ; }
Resend the double opt-in token

@param Contao\DataContainer $dc
Resend the double opt - in token