- Коррекция метода валидации перед регистрацией

parent 49091b8f
...@@ -564,7 +564,7 @@ class User extends \common\components\ActiveRecordModel implements IdentityInter ...@@ -564,7 +564,7 @@ class User extends \common\components\ActiveRecordModel implements IdentityInter
public function afterRegistration($params=array()){ public function afterRegistration($params=array()){
$date = new \DateTime(); $date = new \DateTime();
$model = new TriggerLogs(); $model = new TriggerLogs();
$model->user_id = $this->getPrimaryKey(); $model->user_id = $this->id;
$model->action = TriggerLogs::USER_REGISTRATION; $model->action = TriggerLogs::USER_REGISTRATION;
$model->url = Yii::$app->request->getUrl(); $model->url = Yii::$app->request->getUrl();
$model->datetime = $date->format('Y-m-d H:i:s'); $model->datetime = $date->format('Y-m-d H:i:s');
...@@ -598,8 +598,6 @@ class User extends \common\components\ActiveRecordModel implements IdentityInter ...@@ -598,8 +598,6 @@ class User extends \common\components\ActiveRecordModel implements IdentityInter
return false; return false;
} }
return true; return true;
} }
/** /**
......
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