Mercurial > prosody-modules
comparison mod_http_oauth2/html/login.html @ 5272:acab61ba7f02
mod_http_oauth2: Focus username field automatically
Reduces effort, not having to click or tab to focus the username field.
Should have no negative effects since there's no other elements one
might want to focus.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 23 Mar 2023 16:48:18 +0100 |
parents | 7acf73d2ebb5 |
children | 398d936e77fb |
comparison
equal
deleted
inserted
replaced
5271:3a1df3adad0c | 5272:acab61ba7f02 |
---|---|
14 <p>Sign in to your account to continue.</p> | 14 <p>Sign in to your account to continue.</p> |
15 {state.error&<div class="error"> | 15 {state.error&<div class="error"> |
16 <p>{state.error}</p> | 16 <p>{state.error}</p> |
17 </div>} | 17 </div>} |
18 <form method="post"> | 18 <form method="post"> |
19 <input type="text" name="username" placeholder="Username" aria-label="Username" required><br/> | 19 <input type="text" name="username" placeholder="Username" aria-label="Username" required autofocus><br/> |
20 <input type="password" name="password" placeholder="Password" aria-label="Password" autocomplete="current-password" required><br/> | 20 <input type="password" name="password" placeholder="Password" aria-label="Password" autocomplete="current-password" required><br/> |
21 <input type="submit" value="Sign in"> | 21 <input type="submit" value="Sign in"> |
22 </form> | 22 </form> |
23 </fieldset> | 23 </fieldset> |
24 </main> | 24 </main> |