-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathforgot.php
47 lines (34 loc) · 1.88 KB
/
forgot.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
<?php if(!isset($_SESSION)) { session_start();}
/* Require UserClass.php to call registration function */
require("classes/UserClass.php");
// Call for class constructor.
$passwordReset = new UserClass();
?>
<?php include_once 'header.php'; ?>
<div class="container">
<!-- Forgot password form -->
<div class="forgotpassword-Form">
<form action="forgot.php" name="forgotpassword-Form" class="form-forgot" method="post">
<h3 class="cnt">Forgot your password?</h3>
<hr class="colorgraph">
<p class="">Enter your email. We'll email instructions on how to reset your password.</p>
<label for="email">E-mail<span class="red">*</span>:</label>
<input type="email" name="email" id="email" placeholder="E-mail" class="input form-control" autocomplete="off" required autofocus><br>
<!-- If there is an error it will be shown. -->
<?php if(!empty($_SESSION['message'])): ?>
<div class="alert alert-danger alert-container" id="alert">
<strong><center><?php echo htmlentities($_SESSION['message']) ?></center></strong>
<?php unset($_SESSION['message']); ?>
</div>
<?php endif; ?>
<!-- If e-mail has been sent. -->
<?php if(!empty($_SESSION['SuccessMessage'])): ?>
<div class="alert alert-success alert-container" id="alert">
<strong><center><?php echo htmlentities($_SESSION['SuccessMessage']) ?></center></strong>
<?php unset($_SESSION['SuccessMessage']); ?>
</div>
<?php endif; ?>
<input type="submit" name="forgotPassword" value="Send e-mail" class="btn btn-lg btn-block submit" />
</form>
</div> <!-- End Forgot password Form-->
</div>