Exemplo n.º 1
0
 /**
  * authenticate() - defined by AdapterInterface.  
  * Attempt an authentication.  
  * Previous to this call, this adapter would have already been configured 
  * with all necessary information to successfully connect to a database table 
  * and attempt to find a record matching the provided identity.
  * 
  * 
  * @access public
  * @throws RuntimeException if answering the authentication query is impossible
  * @return Result
  */
 public function authenticate()
 {
     $this->authenticateSetup();
     $entities = $this->_query->findBy('Users\\Entity\\User', array('username' => $this->_identity));
     return $this->validateResult($entities);
 }