mod_http_oauth2/html/login.html
changeset 5470 398d936e77fb
parent 5276 acab61ba7f02
child 5530 46e512f4ba14
--- a/mod_http_oauth2/html/login.html	Wed May 17 17:56:56 2023 +0200
+++ b/mod_http_oauth2/html/login.html	Wed May 17 18:49:22 2023 +0200
@@ -16,8 +16,8 @@
 		<p>{state.error}</p>
 	</div>}
 	<form method="post">
-		<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="text" name="username" placeholder="Username" aria-label="Username" required {extra.no_username_hint&autofocus}{extra.username_hint& value="{extra.username_hint?}"}><br/>
+		<input type="password" name="password" placeholder="Password" aria-label="Password" autocomplete="current-password" required {extra.username_hint&autofocus}><br/>
 		<input type="submit" value="Sign in">
 	</form>
 	</fieldset>