mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
fixed issue where logging out via ACP caused CSRF error
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user