protected removeHash ( string $hash ) : void | ||
$hash | string | The hashed token to remove (unused before 1.9) |
return | void |
protected function removeHash($hash)
{
$hash = $this->db->sanitizeString($hash);
$query = "DELETE FROM {$this->table} WHERE code = '{$hash}'";
try {
$this->db->deleteData($query);
} catch (\DatabaseException $e) {
$this->handleDbException($e);
}
}