isSiteChangeLogin()) { $adapter->setSiteChangeLogin(); } $result = parent::authenticate($adapter); if ($result->isValid() && $this->isSiteChangeLogin()) { $storageData = $this->getStorage()->read(); $storageData['isSiteChangeLogin'] = true; $this->getStorage()->write($storageData); } return $result; } public function setSiteChangeLogin($flag = true) { $this->_siteChangeLogin = $flag; return $this; } public function isSiteChangeLogin() { return (bool) $this->_siteChangeLogin; } }