diff options
| author | Adam Soltys <[email protected]> | 2024-09-20 15:43:01 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-20 15:44:21 -0700 |
| commit | 200c5ff1f4e41ed907a1dd4a0337d8ee0a94b8be (patch) | |
| tree | d91132e87c0a5ae7c76ba68caa3016729945e996 /src/routes/(app)/account | |
| parent | fb8510db273f78317a02ca151f7f24a9b8de29ab (diff) | |
| download | coinos-ui-200c5ff1f4e41ed907a1dd4a0337d8ee0a94b8be.tar.gz coinos-ui-200c5ff1f4e41ed907a1dd4a0337d8ee0a94b8be.zip | |
qr page
Diffstat (limited to 'src/routes/(app)/account')
| -rw-r--r-- | src/routes/(app)/account/pass/+page.svelte | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/routes/(app)/account/pass/+page.svelte b/src/routes/(app)/account/pass/+page.svelte index cf4e80e6..f5e956ff 100644 --- a/src/routes/(app)/account/pass/+page.svelte +++ b/src/routes/(app)/account/pass/+page.svelte @@ -19,7 +19,8 @@ let { user } = data; let confirm, password, revealPassword, revealConfirm; - let type = "bitcoin"; + let type = "bitcoin"; + let name = $t("accounts.savings"); onMount(() => { if (!$mnemonic) goto("/account/savings"); @@ -45,7 +46,7 @@ let fingerprint = child.fingerprint.toString(16).padStart(8, "0"); let receiving = child.deriveChild(0); - await post("/api/accounts", { fingerprint, pubkey, seed, type }); + await post("/api/accounts", { fingerprint, pubkey, name, seed, type }); goto(`/${user.username}`); } catch (e) { console.log(e); @@ -90,6 +91,7 @@ /> {/if} <button + tabindex="-1" type="button" on:click={() => (revealPassword = !revealPassword)} class="absolute right-5 -translate-y-1/2 top-1/2" @@ -110,7 +112,6 @@ /> {:else} <input - name="password" type="password" placeholder="Confirm password" required @@ -120,6 +121,7 @@ {/if} <button type="button" + tabindex="-1" on:click={() => (revealConfirm = !revealConfirm)} class="absolute right-5 -translate-y-1/2 top-1/2" > |
