-
Notifications
You must be signed in to change notification settings - Fork 1
/
reset_confirm.php
70 lines (57 loc) · 1.99 KB
/
reset_confirm.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
<?php
require_once "includes/db.php";
require_once "includes/header.php";
$page = "admin_login";
?>
<?php require_once "includes/navigation.php";
if(isset($_POST['Verify '])){
if(isset($_SESSION['e_rand'])){
$otp=$_POST['otp'];
$c_otp=$_SESSION['e_rand'];
if($otp==123){
header("location: reset_password.php");
}
}else{
$session['qwe']=$otp;
header("location: reset_confirm.php");
}
}
?>
<div class="container-login" style="padding: 120px 0 50px 0">
<div class="wrap-login">
<div class="login-form-title" style="background-image: url(./img/bg/register_img.jpg);">
<span class="login-form-title-1"> Verification </span>
</div>
<div class="text-center text-danger py-2">
OTP has been sent to your email address <?php echo $session['qwe'] ?>
</div>
<form class="login-form" action="" method="post">
<!-- <div class="text-center text-danger my-2 rounded">
<h5 style="font-size: 1rem;"><?php echo $msg; ?></h5>
</div> -->
<div class="wrap-input">
<span class="label-input"> OTP </span>
<input class="input" type="number" name="otp" placeholder="Type the OTP here" required>
</div>
<div class="container-login-form-btn" style="margin-top: 15px;">
<input type="submit" name="Verify" value="Verify" class="login-form-btn">
</div>
</form>
</div>
</div>
<!-- footer -->
<?php require_once "includes/footer.php"; ?>
<script src="assets/jquery/jquery-3.5.1.min.js"></script>
<script src="assets/bootstrap/bootstrap.min.js"></script>
<script src="assets/wow.min.js"></script>
<script src="assets/slick/slick.min.js"></script>
<script src="assets/fontawesome/fontawesome.min.js"></script>
<script src="./js/script.js"></script>
<script>
var loader = document.getElementById('preloader');
function myfunction(){
loader.style.display = 'none';
}
</script>
</body>
</html>