|
|||
|
This is what I'm using to write the data after a user is logged in:
Code:
//$auth is this -> $auth = Zend_Auth::getInstance(); $data = $authAdapter->getResultRowObject(null,'password'); $auth->setStorage()->write($data); |
|
||||
|
have a look at $auth->getIdentity();
by the way, $auth->getStorage()->write() isn't a exactly the easiest or cleanest way to do that...
__________________
SpotSec Network Gateway Project on SourceForge SpotSec Network Gateway Project Home SpotSec Blog: http://spotsec.com/blog |
|
|||
|
It's a little cryptic to me, in the API manual it says of getIdentity(): Returns the identity from storage or null if no identity is available
Does that mean it returns what was passed to it? In my case being the array of values? I think my confusion comes from my programming in .Net, where they have a similar thing to this, but when you check the identity it returns the ID only of the user. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|