-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforgetPassword.html
More file actions
100 lines (94 loc) · 2.83 KB
/
forgetPassword.html
File metadata and controls
100 lines (94 loc) · 2.83 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"/>
<link rel="stylesheet" href="../style/style.css"/>
<link rel="icon" href="https://threedio-prod-var-cdn.icons8.com/yi/preview_sets/previews/WeT6QykoXXlZa8b-.webp"/>
<title>Traverse | Forget Password</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0f2f5;
}
.register-form {
background-color: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
}
.form-group {
margin-bottom: 1rem;
}
label {
display: block;
margin-bottom: 0.5rem;
font-weight: bold;
}
input {
width: 100%;
padding: 0.5rem;
border: 1px solid #ddd;
border-radius: 4px;
box-sizing: border-box;
}
button {
width: 100%;
padding: 0.75rem;
background-color: #1877f2;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
}
button:hover {
background-color: #166fe5;
}
.error-message {
display: none;
color: red;
margin-top: 10px;
text-align: center;
}
</style>
</head>
<body>
<div class="register-form">
<h2 style="text-align: center;">Recover your account</h2>
<p style="text-align: center;">Enter your email to reset your password</p>
<form action="./backend/verify_emial.php" method="POST" id="recover-form">
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required />
</div>
<div class="form-group">
<label for="password">New passsword:</label>
<input type="password" id="password" name="password" required>
</div>
<div id="error-msg" class="error-message">User not found!</div>
<!--<div id="error-msg2" class="error-message">User not found!</div>-->
<button type="submit"id="reset-btn">Reset Password</button>
<div style="text-align: center; margin-top: 1rem;">
<a href="./Login.html" style="text-decoration: none; color: #000000;"><i class="fas fa-arrow-left"></i> back to login</a>
</div>
</form>
</div>
<script>
window.onload = function () {
const params = new URLSearchParams(window.location.search);
if (params.has("error")) {
document.getElementById("error-msg").style.display = "block";
}
};
</script>
</body>
</html>