mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-09 09:02:31 -06:00
[WebUI] Use POST for logout command
This is to avoid browser being smart to prefetch the link then logging out the user.
This commit is contained in:
committed by
sledgehammer999
parent
1fa2957d27
commit
f8d4315f7e
@@ -612,7 +612,7 @@ initializeWindows = function() {
|
|||||||
new Event(e).stop();
|
new Event(e).stop();
|
||||||
new Request({
|
new Request({
|
||||||
url: 'logout',
|
url: 'logout',
|
||||||
method: 'get',
|
method: 'post',
|
||||||
onSuccess: function() {
|
onSuccess: function() {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user