-
Notifications
You must be signed in to change notification settings - Fork 0
/
ResetPassword.html
104 lines (93 loc) · 4.43 KB
/
ResetPassword.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="images/icons/favicon.ico"/>
<title>Change Password</title>
<!--===============================================================================================-->
<link rel="icon" type="image/png" href="images/icons/favicon.ico"/>
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/bootstrap/css/bootstrap.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts/font-awesome-4.7.0/css/font-awesome.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/animate/animate.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/css-hamburgers/hamburgers.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/select2/select2.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="css/util.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<!--===============================================================================================-->
<style>
.error {
color: red;
font-size: 14px;
margin-top: 5px;
}
.success {
color: green;
font-size: 14px;
margin-top: 5px;
}
</style>
</head>
<body>
<div class="limiter">
<div class="container-login100">
<div class="wrap-login100">
<!-- Image -->
<div class="login100-pic">
<img src="images/img-01.png" alt="IMG">
</div>
<!-- Form -->
<form class="login100-form" onsubmit="return validatePasswords()">
<div class="login100-form-title">
Change Password
</div>
<div class="wrap-input100">
<input class="input100" id="new-password" type="password" placeholder="New Password" oninput="checkPasswords()">
</div>
<div class="wrap-input100">
<input class="input100" id="confirm-password" type="password" placeholder="Confirm Password" oninput="checkPasswords()">
</div>
<div id="message" class="error"></div>
<div class="container-login100-form-btn">
<button class="login100-form-btn" type="submit">Submit</button>
</div>
<div class="text-center p-t-136 p-l-20">
<a class="txt2" href="index.html">
Login
</a>
</div>
</form>
</div>
</div>
</div>
<script>
function checkPasswords() {
const newPassword = document.getElementById('new-password').value;
const confirmPassword = document.getElementById('confirm-password').value;
const message = document.getElementById('message');
if (newPassword !== confirmPassword) {
message.textContent = 'Passwords do not match';
message.className = 'error';
} else {
message.textContent = 'Passwords match';
message.className = 'success';
}
}
function validatePasswords() {
const newPassword = document.getElementById('new-password').value;
const confirmPassword = document.getElementById('confirm-password').value;
if (newPassword !== confirmPassword) {
alert('Passwords do not match');
return false;
}
return true;
}
</script>
</body>
</html>