Answer the question
In order to leave comments, you need to log in
Changing data in the Zend_Auth store?
standard situation. Authenticated with Zend_Auth
...<br>
$authAdapter->setIdentity($login);<br>
$authAdapter->setCredential($password);<br><br>
$auth = Zend_Auth::getInstance();<br>
$result = $auth->authenticate($authAdapter);<br><br>
if ($result->isValid()) {<br>
$data = $authAdapter->getResultRowObject(null, 'password');<br>
$auth->getStorage()->write($data);<br>
}<br>
...<br>
Answer the question
In order to leave comments, you need to log in
After changing the data, you can simply update the data of the authorization adapter instance using the setIdentity and setCredential methods.
What's stopping you from doing:
$data = $auth->getStorage()->read(); // или так Zend_Auth::getInstance()->getStorage()->read();
$data->field = $user->firld;
$auth->getStorage()->write($data);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question