Browse Source

[WebUI] Use POST for logout command

This is to avoid browser being smart to prefetch the link then logging
out the user.
adaptive-webui-19844
Chocobo1 7 years ago
parent
commit
b234fcec9c
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/webui/www/public/scripts/mocha-init.js

2
src/webui/www/public/scripts/mocha-init.js

@ -612,7 +612,7 @@ initializeWindows = function() { @@ -612,7 +612,7 @@ initializeWindows = function() {
new Event(e).stop();
new Request({
url: 'logout',
method: 'get',
method: 'post',
onSuccess: function() {
window.location.reload();
}

Loading…
Cancel
Save