diff options
| author | secondl1ght <[email protected]> | 2022-08-24 19:00:59 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-08-24 19:00:59 -0400 |
| commit | b0862f5b13bc57fd983a48e9d996e75e734f28b8 (patch) | |
| tree | d8a0c801548b078a4576e501d91016e9917c5a09 /src/components | |
| parent | e54f0cf98d65e71153c4613a1e9a9b845b9f8f87 (diff) | |
| parent | 766004627991acd1732f1b8886a61a644bc35e27 (diff) | |
| download | coinos-ui-b0862f5b13bc57fd983a48e9d996e75e734f28b8.tar.gz coinos-ui-b0862f5b13bc57fd983a48e9d996e75e734f28b8.zip | |
Merge pull request #2 from coinos/add-email
Add email
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/RegisterOrLogin.svelte | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/components/RegisterOrLogin.svelte b/src/components/RegisterOrLogin.svelte index 2d1ee6a5..1c6d52e0 100644 --- a/src/components/RegisterOrLogin.svelte +++ b/src/components/RegisterOrLogin.svelte @@ -9,7 +9,8 @@ export let pageID; let username = 'bob', - password = 'pw'; + password = 'pw', + email = '[email protected]'; let revealPassword = false; @@ -33,6 +34,20 @@ <h1 class="text-2xl font-bold text-center">{$t('login.' + pageID)}</h1> <form class="space-y-5" {action} method="POST"> + {#if pageID === 'register'} + <div> + <label for="email" class="font-semibold">Email</label> + <!-- svelte-ignore a11y-autofocus --> + <input + name="email" + type="email" + required + class="bg-primary p-4 rounded-2xl w-full" + bind:value={email} + autofocus + /> + </div> + {/if} <div> <label for="username" class="font-semibold">{$t('login.username')}</label> <!-- svelte-ignore a11y-autofocus --> @@ -42,7 +57,7 @@ required class="bg-primary p-4 rounded-2xl w-full" bind:value={username} - autofocus + autofocus={pageID === 'signIn'} /> </div> @@ -81,7 +96,7 @@ {:else} <div class="flex justify-end items-center"> <a href="/forgot" class="underline underline-offset-4 text-black text-sm" - >{$t('login.forgotPassword')}</a + >{$t('login.forgotUserOrPassword')}</a > </div> {/if} |
