-
Notifications
You must be signed in to change notification settings - Fork 1
/
forgotpage.html
54 lines (51 loc) · 2.5 KB
/
forgotpage.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html style="background-color: #f1f7fc;">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>PROJECT355</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/fonts/fontawesome-all.min.css">
<link rel="stylesheet" href="assets/fonts/ionicons.min.css">
<link rel="stylesheet" href="assets/css/Google-Style-Login.css">
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="assets/css/Login-Form-Clean-1.css">
<link rel="stylesheet" href="assets/css/Login-Form-Clean.css">
<link rel="stylesheet" href="assets/css/Login-Form-Dark.css">
<link rel="stylesheet" href="assets/css/Navigation-Clean.css">
<link rel="stylesheet" href="assets/css/styles.css">
<script>
function resetPassword() {
var email = document.getElementById("email").value;
var newPass = document.getElementById("new-password").value;
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
} else {
// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
//document.getElementById("email-contents").innerHTML = this.responseText;
}
};
xmlhttp.open("GET","resetPassword.php?em="+email+"&pw="+newPass,true);
xmlhttp.send();
}
</script>
</head>
<body style="background-color: #f1f7fc;">
<div id="form">
<h1>Forgot Password?</h1>
<p>Enter your email address to reset your password.</p>
<form id="reset-form"><label>Email address</label><input class="form-control" type="email" id="email"><label>New Password</label><input class="form-control" type="text" id="new-password"><span></span><button class="btn btn-primary" type="button" id="reset-btn" onclick="resetPassword()">Reset Password</button></form>
</div>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/js/calendar.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="assets/js/project.js"></script>
</body>
</html>