-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathforgot-password.php
53 lines (53 loc) · 2.04 KB
/
forgot-password.php
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
<?php
session_start();
if (isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true) {
header("location: home.php");
exit;
}
$email = "";
if (!empty($_GET['email'])) {
$email = $_GET['email'];
}
$email_err = "";
if (!empty($_GET['email_err'])) {
$email_err = $_GET['email_err'];
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height">
<title>Reset password</title>
<link rel="shortcut icon" href="logos/logo.png" type="image/x-icon">
<link rel="stylesheet" href="css/general3.css?v=<?php echo time(); ?>">
</head>
<body>
<div class="wrapper">
<form action="actions.php?action=forgot_password" method="post">
<div id="menu">
<h1>Forgot your password?</h1>
<div>
<input type="email" name="email" class="user-input" value="<?php echo $email; ?>" required placeholder="Email">
<br>
<span class="user-error"><?php echo $email_err; ?></span>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="confirm_mail" required>
<label class="form-check-label" for="confirm_mail">
I agree to receive an email to reset my password.
</label>
</div>
<br>
<div>
<input type="submit" class="user-button" value="RESET PASSWORD">
</div>
<br>
<p>Remember password?</p>
<a href="login.php">Login now</a>
</div>
</form>
</div>
</body>
</html>