Skip to content

Node.js based forum software built for the modern web

fixed issue where logging out via ACP caused CSRF error

Julian Lamfb6026f95fe5
diff --git a/public/src/admin/general/dashboard.js b/public/src/admin/general/dashboard.js
index 255dc81cbf..76316eb091 100644
--- a/public/src/admin/general/dashboard.js
+++ b/public/src/admin/general/dashboard.js
@@ -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) {