Cleanup unnecessary CSRF tokens passed

This commit is contained in:
emanuele-f 2020-05-08 12:55:36 +02:00
parent 53e276e283
commit af842e4aa6
17 changed files with 7 additions and 36 deletions

View file

@ -99,8 +99,6 @@ $(document).ready(function() {
$.post(`${http_prefix}/lua/enterprise/edit_syslog_producer.lua`, data_to_send)
.then((data, result, xhr) => {
// always update the token
syslog_producers_csrf = data.csrf;
$(`form#syslog-producers-${action}-modal button[type='submit']`).removeAttr("disabled");
$('#syslog-producers-alert').addClass('alert-success').removeClass('alert-danger');