-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforgot.php
71 lines (51 loc) · 1.8 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
include_once('lib/test.php');
require_once('functions/user.php');
require_once('functions/alert.php');
if(isset($_SESSION['loggedIn']) && !empty($_SESSION['loggedIn'])){
// redirect to dashboard
header("Location: dashboard.php");
//write logic for admin to be logged in and access this page
//user object, role and if logged in and role is admin add patient
}
?>
<div class='body'>
<div class="signup-wrapper">
<div class="img">
<a href='index.php'> <img class="imgs" src="./img/logo.png"> </a>
</div>
<form method="POST" id="registration_form" action="processforgot.php">
<p>
<?php print_alerts(); ?>
</p>
<div class="login-containe" id="del">
<h2>Forgot Password <br><span>Enter your email to reset your password</span></h2>
<div class="for-group">
<p> <label for="email">Email Adress</label></p>
<input
<?php
if(isset($_SESSION['email'])){
echo "value=" . $_SESSION['email'];
}
?>
type="email"
name="email"
placeholder="Email"
title=""
id="email"
/>
<span class="error_form" id="email_error_message"></span>
</div>
<button class='buttons' type="submit">RESET PASSWORD</button>
</div>
</div>
<!-- <div> -->
<p class="p"><a href="login.php"> Back to login</a></p>
<!-- </div> -->
</div>
</form>
</div>
</div>
<script type='text/javascript'>
</script>
<?php include_once('lib/footer.php'); ?>