-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathforgetpassword.html
62 lines (59 loc) · 1.93 KB
/
forgetpassword.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Forgot Password</title>
<!-- Bootstrap CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<style>
body {
background-color: #4e5153;
}
.forgot-password-container {
max-width: 400px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 5px;
margin-top: 50px;
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.1);
}
</style>
</head>
<body>
<div class="container">
<div class="forgot-password-container">
<h2 class="text-center mb-4">Forgot Password</h2>
<form id="resetPasswordForm" novalidate>
<div class="form-group">
<label for="email">Email address</label>
<input type="email" class="form-control" id="email" name="email" placeholder="Enter your email" required>
<div class="invalid-feedback">
Please provide a valid email address.
</div>
</div>
<button type="submit" class="btn btn-primary btn-block">Reset Password</button>
</form>
</div>
</div>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.bundle.min.js"></script>
<!-- Custom JavaScript for form validation -->
<script>
// Fetch the form element
var form = document.getElementById('resetPasswordForm');
// Listen for form submission
form.addEventListener('submit', function(event) {
// Check if the form is valid
if (!form.checkValidity()) {
// If not, prevent the default behavior and stop propagation
event.preventDefault();
event.stopPropagation();
}
// Add Bootstrap's was-validated class to show validation messages
form.classList.add('was-validated');
});
</script>
</body>
</html>