check email verified before user is notified
This commit is contained in:
parent
2ff34a98ae
commit
b98d95cf7c
|
|
@ -39,6 +39,10 @@ class SendMailTemplateAction extends ActionBase
|
|||
*/
|
||||
public function triggerAction($params)
|
||||
{
|
||||
if($this->host->send_to_mode == 'user' && $params['user']) {
|
||||
if(!$params['user']['email_verified'])
|
||||
return;
|
||||
}
|
||||
$template = $this->host->mail_template;
|
||||
|
||||
$recipient = $this->getRecipientAddress($params);
|
||||
|
|
|
|||
Loading…
Reference in New Issue