public function logout($clearIdentity = FALSE) { $identity = $this->storage->getIdentity(); if (!is_null($identity)) { $this->identityHash->setAction($identity->getId(), IdentityHash::ACTION_DESTROYED, isset($identity->hash) ? $identity->hash : NULL); } parent::logout($clearIdentity); }
/** * @param string $username * @param string $type [username|id] * @throws Trejjam\Authorization\User\ManagerException */ public function setUpdated($username, $type = 'username') { $user = $this->getUser($username, $type); if ($user) { $this->identityHash->setAction($user, IdentityHash::ACTION_RELOAD); } else { //this may not happen throw new Trejjam\Authorization\User\ManagerException(); } }