Skip to content

Commit e2f0116

Browse files
authored
[Autofill] login page with identity (#336)
* autofill login page with identity * remove required attribute
1 parent 8abf32e commit e2f0116

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

autofill/login-with-identity.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width">
6+
<title>Identity Login Form</title>
7+
<link rel="stylesheet" href="../style.css" />
8+
</head>
9+
<body>
10+
<p><a href="../index.html#autofill">[Home]</a></p>
11+
12+
<div class="dialog">
13+
<h2>Login to Your Account</h2>
14+
<p>Enter your credentials to sign in</p>
15+
16+
<form id="login-form" action="/login">
17+
<fieldset>
18+
<label for="first-name">First Name</label>
19+
<input id="first-name" type="text" autocomplete="given-name">
20+
21+
<label for="last-name">Last Name</label>
22+
<input id="last-name" type="text" autocomplete="family-name">
23+
24+
<label for="login-email">Email</label>
25+
<input id="login-email" type="email" autocomplete="username">
26+
27+
<label for="login-password">Password</label>
28+
<input id="login-password" type="password" autocomplete="current-password">
29+
30+
<button type="submit">Log In</button>
31+
</fieldset>
32+
</form>
33+
</div>
34+
</body>
35+
</html>

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ <h2 id="autofill">Autofill</h2>
100100
<li><a href="./autofill/password-update.html">Password update/reset forms</a></li>
101101
<li><a href="./autofill/shadow-dom.html">Forms within shadow DOM</a></li>
102102
<li><a href="./autofill/credit-card-various-inputs.html">Credit card form with various inputs and focus events</a></li>
103+
<li><a href="./autofill/login-with-identity.html">Login with identity</a></li>
103104
<li>
104105
Autoprompt credentials autofill when a login form is front and center
105106
<ul>

0 commit comments

Comments
 (0)