Redirect to logout when clearing login logs

This commit is contained in:
JonnyWong16 2021-05-14 14:10:28 -07:00
parent add1b4ec54
commit f6083b12ba
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 2 additions and 2 deletions

View file

@ -158,7 +158,7 @@ $('.login_log_table').on('click', '> tbody > tr > td> .sign-out-tooltip', functi
current: rowData['current'] current: rowData['current']
}).then(function () { }).then(function () {
if (rowData['current']) { if (rowData['current']) {
window.location = 'auth/logout' window.location = 'auth/logout';
} else { } else {
login_log_table.draw(); login_log_table.draw();
} }

View file

@ -536,7 +536,7 @@
} else { } else {
showMsg('<i class="fa fa-times"></i> ' + msg, false, true, 5000, true) showMsg('<i class="fa fa-times"></i> ' + msg, false, true, 5000, true)
} }
login_log_table.draw(); window.location = 'auth/logout';
} }
}); });
}); });