fixed issue where logging out via ACP caused CSRF error

v1.18.x
Julian Lam 10 years ago
parent 908f5f2fd4
commit fb6026f95f

@ -32,9 +32,7 @@ define('admin/general/dashboard', ['semver'], function(semver) {
});
$('#logout-link').on('click', function() {
$.post(RELATIVE_PATH + '/logout', function() {
window.location.href = RELATIVE_PATH + '/';
});
app.logout();
});
$.get('https://api.github.com/repos/NodeBB/NodeBB/tags', function(releases) {

Loading…
Cancel
Save