From 2f8bf16ace91ad2b2a875f0ef10ac699bf724a8e Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 14 Apr 2026 05:07:07 +0200 Subject: [PATCH] Hide Active Sessions for SSO-only users MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follows the same pattern as Change Password and 2FA sections — hidden by default in the HTML, revealed only when canLocalAuth=true. Why: revoke technically deletes the PedScribe session row and clears the cookie on that device, but the SSO user can re-auth instantly because their IdP session is still live. Surfacing a "revoke" button that the IdP will immediately undo is misleading. SSO users now see only the SSO-relevant sections of Settings. --- public/components/settings.html | 4 ++-- public/js/auth.js | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/public/components/settings.html b/public/components/settings.html index f88883d..b4cd898 100644 --- a/public/components/settings.html +++ b/public/components/settings.html @@ -133,8 +133,8 @@ - -
+ +