aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/account/pass
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-09-20 10:03:22 -0700
committerAdam Soltys <[email protected]>2024-09-20 10:03:22 -0700
commit5c86d9eadaa0021928ea39c7d0e875d0c446280f (patch)
tree9d8465f37573f0efa1e84ce64d7d2336798cc319 /src/routes/(app)/account/pass
parentd4c3d52fdde5fef8f72c1f572f1ce7c70da86b23 (diff)
downloadcoinos-ui-5c86d9eadaa0021928ea39c7d0e875d0c446280f.tar.gz
coinos-ui-5c86d9eadaa0021928ea39c7d0e875d0c446280f.zip
import key
Diffstat (limited to 'src/routes/(app)/account/pass')
-rw-r--r--src/routes/(app)/account/pass/+page.svelte7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/routes/(app)/account/pass/+page.svelte b/src/routes/(app)/account/pass/+page.svelte
index 0eb16072..cf4e80e6 100644
--- a/src/routes/(app)/account/pass/+page.svelte
+++ b/src/routes/(app)/account/pass/+page.svelte
@@ -19,6 +19,7 @@
let { user } = data;
let confirm, password, revealPassword, revealConfirm;
+ let type = "bitcoin";
onMount(() => {
if (!$mnemonic) goto("/account/savings");
@@ -44,7 +45,7 @@
let fingerprint = child.fingerprint.toString(16).padStart(8, "0");
let receiving = child.deriveChild(0);
- await post("/api/accounts", { fingerprint, pubkey, seed });
+ await post("/api/accounts", { fingerprint, pubkey, seed, type });
goto(`/${user.username}`);
} catch (e) {
console.log(e);
@@ -65,8 +66,8 @@
class="container w-full mx-auto text-lg px-4 max-w-xl space-y-5"
>
<p class="text-secondary mb-1">
- Careful! If you lose this password you won't be able to use the account.
- We can't recover it for you.
+ If you lose this password you won't be able to use the account. We can't
+ recover it for you even if you have the seed phrase.
</p>
<div class="relative">