public function authenticate(Zend_Auth_Adapter_Interface
$adapter) { $result =
$adapter->
authenticate();
/**
* ZF-7546 - prevent multiple succesive calls from storing inconsistent results
* Ensure storage has clean state
*/
if ($this->
hasIdentity()) { $this->
clearIdentity();
} if ($result->
isValid()) { $this->
getStorage()->
write($result->
getIdentity());
} return $result;
} /**
* Returns true if and only if an identity is available from storage
*
* @return boolean
*/