diff options
| author | Adam Soltys <[email protected]> | 2022-08-31 15:22:36 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-08-31 15:27:58 -0700 |
| commit | c5f100066f11593341c020d7bbd3eb1dd9a73663 (patch) | |
| tree | 52e310f4f3f962de3de718bf033357e0f0a16c26 /src/components | |
| parent | d24443114bccd4109df1dd6df621738f3f5e84ed (diff) | |
| download | coinos-ui-c5f100066f11593341c020d7bbd3eb1dd9a73663.tar.gz coinos-ui-c5f100066f11593341c020d7bbd3eb1dd9a73663.zip | |
put otpauth url in 2fa qr code
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/RegisterOrLogin.svelte | 18 |
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')} |
