public function getId() { if ($this->__isInitialized__ === false) { return (int) $this->_identifier["id"]; } $this->__load(); return parent::getId(); }
/** * Generate the user hash in a secure format for storage in a client side 'remember cookie' cookie * * @param \Entities\User $user The user entitiy to generate the hash for * @return string The `sha1()` hash */ protected function _generateCookieUserhash($user) { return sha1($user->getId() . '+' . $user->getUsername() . '/' . $this->_options['resources']['auth']['oss']['rememberme']['salt']); }