Skip to content

Commit

Permalink
added trackable code
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeroff committed Jan 16, 2014
1 parent d2e939b commit 52b944e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions forms/Registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 52b944e

Please sign in to comment.