diff 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
line wrap: on
line diff
--- a/mod_http_oauth2/html/login.html	Thu Mar 23 16:28:08 2023 +0100
+++ b/mod_http_oauth2/html/login.html	Thu Mar 23 16:48:18 2023 +0100
@@ -16,7 +16,7 @@
 		<p>{state.error}</p>
 	</div>}
 	<form method="post">
-		<input type="text" name="username" placeholder="Username" aria-label="Username" required><br/>
+		<input type="text" name="username" placeholder="Username" aria-label="Username" required autofocus><br/>
 		<input type="password" name="password" placeholder="Password" aria-label="Password" autocomplete="current-password" required><br/>
 		<input type="submit" value="Sign in">
 	</form>