-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchange-password-form.html
34 lines (30 loc) · 1.1 KB
/
change-password-form.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Form-less Password change form</title>
<link rel="icon" href="/favicon.ico">
<link rel="manifest" href="/manifest.json">
<link rel="stylesheet" type="text/css" href="default.css">
</head>
<body>
<p>
<a href="index.html">Back to main</a>
</p>
<p>
Change password forms should provide filling and password generation
even if the form tag isn't present.
</p>
<p>
Old password: <input type="password" name="current" id="current_password"><br>
New password: <input type="password" name="new" id="new_password"><br>
Confirm new Password: <input type="password" name="confirm" id="confirm_password"><br>
<input
type="submit"
value="Change Password"
id="password_submit"
onclick="f=new FormData();f.append('new', document.querySelector('#new_password').value);x= new XMLHttpRequest(); x.open('GET', '/');x.send(f)" method="get">
</p>
</body>
</html>