Skip to content

Commit

Permalink
Merge pull request #157 from Delemangi/fix/2fa
Browse files Browse the repository at this point in the history
Fix 2FA
  • Loading branch information
Delemangi authored Jun 16, 2024
2 parents 5d57714 + bad2d58 commit b4920a3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions frontend/src/routes/user/account/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,6 @@

<Flex justify="center" align="center" direction="column" gap="lg">
{#if user?.is_2fa_enabled}
<Anchor href="/user/2fa/?option=enable">
<Flex justify="center" gap="md">
<LockClosed />
<Text>Enable 2FA</Text>
</Flex>
</Anchor>
{:else}
<Anchor href="/user/2fa?option=disable">
<Flex justify="center" gap="md">
<LockOpen2 />
Expand All @@ -84,6 +77,13 @@
<Text>Update 2FA</Text>
</Flex>
</Anchor>
{:else}
<Anchor href="/user/2fa/?option=enable">
<Flex justify="center" gap="md">
<LockClosed />
<Text>Enable 2FA</Text>
</Flex>
</Anchor>
{/if}

<Button on:click={generateShareXConfig}>Generate ShareX Configuration</Button>
Expand Down

0 comments on commit b4920a3

Please sign in to comment.