mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 05:55:48 +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() {
|
$('#logout-link').on('click', function() {
|
||||||
$.post(RELATIVE_PATH + '/logout', function() {
|
app.logout();
|
||||||
window.location.href = RELATIVE_PATH + '/';
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$.get('https://api.github.com/repos/NodeBB/NodeBB/tags', function(releases) {
|
$.get('https://api.github.com/repos/NodeBB/NodeBB/tags', function(releases) {
|
||||||
|
|||||||
Reference in New Issue
Block a user