feat: ban a user after too many failed attempts

This commit is contained in:
Terry Geng
2020-05-19 09:45:11 +08:00
parent 0080e9b4cd
commit c8f0ccf706
5 changed files with 69 additions and 19 deletions

View File

@ -72,11 +72,14 @@ function request(_url, _data, refresh = false) {
}
updateControls(data.empty, data.play, data.mode, data.volume);
updatePlayerPlayhead(data.playhead);
},
403: function (){
location.reload(true);
}
},
});
if (refresh) {
location.reload()
location.reload(true)
}
}
@ -541,6 +544,9 @@ function updateResults(dest_page = 1) {
lib_loading.hide();
lib_empty.show();
page_ul.empty();
},
403: function () {
location.reload(true);
}
}
});