forked from vergnet/site-accueil-insa
26 lines
779 B
JavaScript
26 lines
779 B
JavaScript
/*!
|
|
* Matomo - free/libre analytics platform
|
|
*
|
|
* @link https://matomo.org
|
|
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
|
*/
|
|
(function ($) {
|
|
|
|
window.bruteForceLog = {
|
|
unblockAllIps: function () {
|
|
piwikHelper.modalConfirm('#confirmUnblockAllIps', {yes: function () {
|
|
var ajaxRequest = new ajaxHelper();
|
|
ajaxRequest.addParams({
|
|
module: 'API',
|
|
method: 'Login.unblockBruteForceIPs',
|
|
}, 'get');
|
|
ajaxRequest.setCallback(
|
|
function (response) {
|
|
piwikHelper.reload();
|
|
}
|
|
);
|
|
ajaxRequest.send();
|
|
}});
|
|
}
|
|
};
|
|
}(jQuery));
|