Hello,
I've just made an Auth system, and when a user is logged in I can use all the variables stored in an stdClass. But, I want more... I want to have a "login history" so I can track from wich IP a user logged in last and at what date and time, actually all the other user related info.
So I store all that data in a table called users_auth_history and every record is a login. Getting the data in the database is nothing. But getting it out and being able to add it to the already existing user information collected by these two functions:
PHP Code:
//Storing the user information (without the password)
$data = $authAdapter->getResultRowObject(null,'password');
$auth->getStorage()->write($data);
//Retrieving the information and send it to the view
$this->view->user = Zend_Auth::getInstance()->getIdentity();
This might be a stupid question, but I really have no idea where to start.
Thanks,
Jasper