diff --git a/forms/Registration.php b/forms/Registration.php index 5bd525908..ac834ad23 100644 --- a/forms/Registration.php +++ b/forms/Registration.php @@ -104,6 +104,10 @@ public function register() $identity->sendConfirmationMessage(); \Yii::$app->getSession()->setFlash('confirmation_message_sent'); } + if ($this->getModule()->trackable) { + $identity->registration_ip = \Yii::$app->getRequest()->getUserIP(); + $identity->save(false); + } return true; } }