mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-10-26 11:27:04 +00:00
Fix remove login token modal callback
Corrected the callback function for the ‘Remove Login Token’ modal to properly execute the token removal. The previous implementation incorrectly wrapped the callback in an arrow function returning another function, preventing the logic from running.
This commit is contained in:
parent
4140656028
commit
3d0ea82425
@ -14584,7 +14584,7 @@
|
||||
x += addHtmlValue("Name", EscapeHtml(token.name));
|
||||
x += addHtmlValue("Username", EscapeHtml(token.tokenUser));
|
||||
setModalContent('xxAddAgent', "Remove Login Token", x);
|
||||
showModal('xxAddAgentModal', 'idx_dlgOkButton', () => function (b, tokenUser) { meshserver.send({ action: 'loginTokens', remove: [tokenUser] }); });
|
||||
showModal('xxAddAgentModal', 'idx_dlgOkButton', function () { meshserver.send({ action: 'loginTokens', remove: [tokenUser] }); });
|
||||
}
|
||||
|
||||
function gotoMesh(meshid) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user