acido69/Shanty-Mongo — comment on commit 22c3ec3bed9aee419d566979dfdf44a6cf9a9d5c
File:  line 0
By acido69:

Use Example:

$authTest = Zend_Auth::getInstance();

$authAdapterTest = new Mov_Auth_Adapter_MongoDocument( new UserDocument(), 'email', 'credential' );
$authAdapterTest->setCredential('XXXXXXXX');
$authAdapterTest->setIdentity('user@domain.com');
$resultTest = $authTest->authenticate($authAdapterTest);
if( $resultTest->isValid() ){
var_dump($authTest->getIdentity() );
}