Elgg\PersistentLoginService::removeAllHashes PHP Method

removeAllHashes() protected method

Remove all the hashes associated with a user
protected removeAllHashes ( ElggUser $user ) : void
$user ElggUser The user for whom we're removing hashes
return void
    protected function removeAllHashes(\ElggUser $user)
    {
        $query = "DELETE FROM {$this->table} WHERE guid = '{$user->guid}'";
        try {
            $this->db->deleteData($query);
        } catch (\DatabaseException $e) {
            $this->handleDbException($e);
        }
    }