/** * Resets the bad login counter. * * @param string $userId The user to reset. * * @throws Horde_Auth_Exception */ protected function _resetBadLogins($userId) { if (!$this->_history_api) { throw new Horde_Auth_Exception('Unsupported.'); } try { $this->_history_api->removeByNames(array($userId . '@logins.failed')); } catch (Horde_History_Exception $e) { throw new Horde_Auth_Exception($e); } }
/** */ public function deleteLogs(array $msgs) { $ids = array(); foreach ($msgs as $val) { try { $ids[] = $this->_getUniqueHistoryId($val); } catch (RuntimeException $e) { /* This is an invalid/missing Message-ID. Ignore. */ } } $this->_history->removeByNames($ids); }
/** * @see Horde_History::removeByNames() */ public function removeByNames(array $names) { $this->_history->removeByNames($names); }