hasIdentity()) { $data = $auth->getIdentity(); if (!class_exists($authAdapterClassName, true)) { return false; } /** @var $authAdapter Qs_Auth_Adapter_DbTable */ $authAdapter = new $authAdapterClassName(); $authAdapter->setIdentity($data); $result = $auth->authenticate($authAdapter); if ($result->isValid()) { return true; } else { $auth->clearIdentity(); } } return false; } }