Submit the login form on Enter in the password field.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+11
-3
@@ -290,9 +290,17 @@
|
|||||||
<h1>task-master</h1>
|
<h1>task-master</h1>
|
||||||
<p class="muted">Sign in to manage projects and tickets.</p>
|
<p class="muted">Sign in to manage projects and tickets.</p>
|
||||||
{#if error}<p class="error">{error}</p>{/if}
|
{#if error}<p class="error">{error}</p>{/if}
|
||||||
<label>Username<input bind:value={loginUser} autocomplete="username" /></label>
|
<form
|
||||||
<label>Password<input type="password" bind:value={loginPass} autocomplete="current-password" /></label>
|
class="stack"
|
||||||
<button class="primary" onclick={doLogin}>Login</button>
|
onsubmit={(e) => {
|
||||||
|
e.preventDefault()
|
||||||
|
doLogin()
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<label>Username<input bind:value={loginUser} autocomplete="username" /></label>
|
||||||
|
<label>Password<input type="password" bind:value={loginPass} autocomplete="current-password" /></label>
|
||||||
|
<button class="primary" type="submit">Login</button>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
|
|||||||
Reference in New Issue
Block a user