aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-08-31 15:22:36 -0700
committerAdam Soltys <[email protected]>2022-08-31 15:27:58 -0700
commit83e8178b0b9f54fece7390fba4fd9be685b955f8 (patch)
treec68ccdb5b3466669659ed81154972cbcee5d6e2e /src/components
parent2ce44501e97560d203b2ddee8936545ac5790a2f (diff)
downloadcoinos-ui-83e8178b0b9f54fece7390fba4fd9be685b955f8.tar.gz
coinos-ui-83e8178b0b9f54fece7390fba4fd9be685b955f8.zip
put otpauth url in 2fa qr code
Diffstat (limited to 'src/components')
-rw-r--r--src/components/RegisterOrLogin.svelte18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/components/RegisterOrLogin.svelte b/src/components/RegisterOrLogin.svelte
index d83ed21d..7177f353 100644
--- a/src/components/RegisterOrLogin.svelte
+++ b/src/components/RegisterOrLogin.svelte
@@ -10,7 +10,8 @@
let username = 'bob',
password = 'pw',
- email = '[email protected]';
+ email = '[email protected]',
+ twofa = '';
let revealPassword = false;
@@ -89,6 +90,21 @@
</button>
</div>
+ {#if pageID === 'signIn'}
+ <div>
+ <label for="token" class="font-semibold">{$t('login.token')}</label>
+ <!-- svelte-ignore a11y-autofocus -->
+ <input
+ name="token"
+ type="text"
+ required
+ class="bg-primary p-4 rounded-2xl w-full"
+ bind:value={twofa}
+ autofocus={pageID === 'signIn'}
+ />
+ </div>
+ {/if}
+
{#if pageID === 'register'}
<p class="text-secondary text-sm">
{$t('login.passwordRecommendation')}