Improve logout patch debug and tighten detection

- Add debugMode parameter to initLogoutPatch with structured console logging
- Pass MODE_DEBUG into logout_one_liner init call
- Exclude <form> elements and large text blocks from logout candidates to avoid mapping LAM user list form as logout

Ref: https://chatgpt.com/share/692b325e-37c0-800f-bb5a-129aae4c65f8
This commit is contained in:
2025-11-29 18:53:03 +01:00
parent 26dfab147d
commit 86760a4be7
2 changed files with 95 additions and 29 deletions

View File

@@ -2,6 +2,7 @@ document.addEventListener('DOMContentLoaded', function() {
initLogoutPatch(
'{{ OIDC.CLIENT.LOGOUT_URL }}',
'{{ WEB_PROTOCOL }}',
'{{ PRIMARY_DOMAIN }}'
'{{ PRIMARY_DOMAIN }}',
{{ MODE_DEBUG | lower }}
);
});
});