mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix: display 2FA status only for the account owner
This commit is contained in:
@@ -259,10 +259,12 @@
|
|||||||
{data.user?.uid}
|
{data.user?.uid}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
{#if isOwner}
|
||||||
<div class="flex shrink-0 items-center">
|
<div class="flex shrink-0 items-center">
|
||||||
<ShieldUser class="mr-2 h-6 w-6 text-neutral-400" />
|
<ShieldUser class="mr-2 h-6 w-6 text-neutral-400" />
|
||||||
<span class="text-neutral-400">2FA {totpEnabled ? 'enabled' : 'disabled'}</span>
|
<span class="text-neutral-400">2FA {totpEnabled ? 'enabled' : 'disabled'}</span>
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
{#if isOwner && data.user?.lastLogin}
|
{#if isOwner && data.user?.lastLogin}
|
||||||
<div class="flex shrink-0 items-center">
|
<div class="flex shrink-0 items-center">
|
||||||
<Clock class="mr-2 h-6 w-6 text-neutral-400" />
|
<Clock class="mr-2 h-6 w-6 text-neutral-400" />
|
||||||
|
|||||||
Reference in New Issue
Block a user