From 4de6a6a1186e97a7063d5e55008f9acc5043b912 Mon Sep 17 00:00:00 2001 From: whoswhip Date: Wed, 7 Jan 2026 18:00:28 -0500 Subject: [PATCH] fix: display 2FA status only for the account owner --- .../src/routes/user/[username]/+page.svelte | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/SharpbinV3.Client/src/routes/user/[username]/+page.svelte b/SharpbinV3.Client/src/routes/user/[username]/+page.svelte index fa406ac..79646eb 100644 --- a/SharpbinV3.Client/src/routes/user/[username]/+page.svelte +++ b/SharpbinV3.Client/src/routes/user/[username]/+page.svelte @@ -259,10 +259,12 @@ {data.user?.uid} -
- - 2FA {totpEnabled ? 'enabled' : 'disabled'} -
+ {#if isOwner} +
+ + 2FA {totpEnabled ? 'enabled' : 'disabled'} +
+ {/if} {#if isOwner && data.user?.lastLogin}