diff options
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')} |
