protected function _checkPass(\Core_Dto_Mapping $dtoPass, $userEntity) { if (count($userEntity) && $userEntity->getTxSenha() !== md5($dtoPass->getTxSenha())) { $this->getMessaging()->addErrorMessage('MN008'); $this->getMessaging()->dispatchPackets(); throw new \Core_Exception_ServiceLayer_Verification(); } }