forked from BOTaaron/beckett-team14
-
Notifications
You must be signed in to change notification settings - Fork 0
/
passwordReset.php
97 lines (70 loc) · 2.43 KB
/
passwordReset.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
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
<?php
$userEmail = isset($_POST ['email']) ? $_POST ['email'] : "";
$messageSubject = 'Reset your Pixelchills password';
$to = "$userEmail";
$body = 'Please click the attatched link to reset your password, if you did not make this request ignore this email.';
$resetLink = 'http://localhost/beckett-team14/changePassword.php';
mail($to,$messageSubject,$resetLink,$body);
if(isset($_POST['email'])){
header("Location: resetConfirmed.php");
exit;
}
?>
<!doctype html>
<html lang="en">
<head>
<!--character width -->
<meta charset="utf-8">
<!--page to fit screen at diff widths -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-compatible" content="ie=edge">
<!-- page title -->
<title>Password Reset</title>
<!-- stylesheet reference -->
<link href="main.css" rel="Stylesheet" type="text/css" />
<!-- icon -->
<link rel="icon" href="images/Logop2.jpg" type="image/x-icon">
<!-- social media icons -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css">
</head>
<body>
<div class="container">
</svg>
</a>
</div>
<!--main page content-->
<body>
<body style="background-color: #962c3a;text-align:center">
</body>
<div class="container">
<br>
<br>
<br>
<br>
<br>
<h1>RESET YOUR PASSWORD</h1>
<p>Enter the email address used to register your account with us.</p>
</div>
<div class="container">
<form action="passwordReset.php" method="POST" class="form">
<div class="form-group">
<input type="text" class="form-control" id="email" name="email" placeholder="Email*" tabindex="1" required>
<div>
<br>
<button type="submit" class="btn">SUBMIT</button>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
</div>
</div>
<span class="pix">
</span>
</footer>
</div>
</body>
</html>