hello,
trying to develop some sort of login tracker for my cakephp application.
i know that i need code like:
$this->data['LoginSession']['username'] = $_SERVER['REMOTE_ADDR'];
$this->data['LoginSession']['ipAddress'] = $_SERVER['REMOTE_ADDR'];
$this->LoginSession->save($this->data);
... in (i guess) users_controller, but don't know exactly where.
also i would like to track successful, but also unsuccessful logins.
can you help me with this please? thank you in advance!