- Метод afterRegistration теперь возвращает результат (true/false)

parent 9e38e76b
......@@ -558,7 +558,13 @@ class User extends \common\components\ActiveRecordModel implements IdentityInter
foreach($actualTriggers as $trigger) {
$exists = TriggerCondition::find()->where(['trigger_id'=>$trigger->id, 'condition_id'=>CheckUserToRegistration::CONDITION_ID])->exists();
if ($exists===true) {
$trigger->initAction();
$init = $trigger->initAction();
if ($init===true) {
return true;
} else {
$this->addError('email', $init);
return false;
}
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment