Routes: Simplify actions in token_ajax

This commit is contained in:
Samantaz Fox 2024-10-29 18:21:58 +01:00
parent e453a2a682
commit dbd96c77e4
No known key found for this signature in database
GPG key ID: F42821059186176E
3 changed files with 5 additions and 13 deletions

View file

@ -91,7 +91,7 @@
var count = document.getElementById('count');
count.textContent--;
var url = '/token_ajax?action_revoke_token=1&redirect=false' +
var url = '/token_ajax?action=revoke_token&redirect=false' +
'&referer=' + encodeURIComponent(location.href) +
'&session=' + target.getAttribute('data-session');