-
Notifications
You must be signed in to change notification settings - Fork 0
/
reset_pass_request.php
110 lines (63 loc) · 2.74 KB
/
reset_pass_request.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
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
session_start();
?>
<html>
<head>
<meta charset="utf-8" />
<title> Elevens Caffé</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<style>
.card-login {
padding: 30px 0 0 0;
width: 350px;
margin: 0 auto;
}
</style>
</head>
<body>
<nav class="navbar navbar-dark bg-dark">
<a class="navbar-brand" href="index.php">
Elevens Caffé
</a>
<ul class="navbar-nav ml-auto my-2 my-lg-0">
<li class="nav-item"><a class="btn btn-danger pl-2 pr-2 text-white nav-link " href="index.php">Home</a></li>
</ul>
</nav>
<div class="row">
<div class="col">
<div class="card-login">
<div class="card">
<div class="card-header">
Recuperação da Password
</div>
<div class="card-body">
<form action="reset_pass/processa_envio.php" method="POST">
<div class="form-group">
<input name="email" id="email" type="email" class="form-control" placeholder="Insira o seu email...">
</div>
<?php
if(isset($_GET['reset'])){
if($_GET['reset'] == 'success'){
echo '<div class="alert alert-success" role="alert">
Por favor consulte o seu email
</div>';
}
}
if(isset($_GET['emailNo'])){
echo '<div class="alert alert-danger" role="alert">
Email não registado
</div>';
}
?>
<?php if( isset($_GET['success']) ) : ?>
<div class="alert alert-success" role="alert"> Sucesso! Consulte o seu email ! </div>
<a class="btn btn-lg btn-info btn-block" href="autenticar.php" >Autenticar</a>
<?php endif ?>
<button class="btn btn-lg btn-success btn-block" name="recoverPassword-submit" id="request-reset-submit" type="submit">Receber password no E-mail</button>
</form>
</div>
</div>
</div>
</div>
</body>
</html>