diff --git a/bun.lockb b/bun.lockb index 30c540f1..968e7033 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 7ad671c3..ca2d0fd2 100644 --- a/package.json +++ b/package.json @@ -51,5 +51,9 @@ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch" }, - "type": "module" + "type": "module", + "dependencies": { + "@svelte-put/qr": "^1.2.1", + "install": "^0.13.0" + } } diff --git a/src/routes/profile/(local_user)/password/+page.svelte b/src/routes/profile/(local_user)/password/+page.svelte index 8f432ce8..d3059e6a 100644 --- a/src/routes/profile/(local_user)/password/+page.svelte +++ b/src/routes/profile/(local_user)/password/+page.svelte @@ -2,13 +2,14 @@ import { deleteProfile, profile, setUser } from '$lib/auth.js' import { getClient, site } from '$lib/lemmy.js' import { trycatch } from '$lib/util.js' - import { Button, Snippet, TextInput, toast } from 'mono-svelte' + import { Button, Material, Snippet, TextInput, toast } from 'mono-svelte' import { instance as currentInstance } from '$lib/instance.js' import { ClipboardDocument, Icon } from 'svelte-hero-icons' import { goto } from '$app/navigation' import { page } from '$app/stores' import Switch from '$lib/components/input/Switch.svelte' import { feature } from '$lib/version.js' + import { qr } from '@svelte-put/qr/svg' import { t } from '$lib/translations.js' import Header from '$lib/components/ui/layout/pages/Header.svelte' @@ -127,6 +128,9 @@

{#if totpEnabled || totpLink} {#if totpLink && !totpEnabled} + + + + + \ No newline at end of file