-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathotp.php
More file actions
73 lines (71 loc) · 3.62 KB
/
otp.php
File metadata and controls
73 lines (71 loc) · 3.62 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Opt</title>
<link rel="shortcut icon" href="./favicon.svg" type="image/svg+xml">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="https://unicons.iconscout.com/release/v4.0.8/css/line.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.7/css/all.css">
<link rel="stylesheet" href="https://unicons.iconscout.com/release/v2.1.9/css/unicons.css">
<link rel="stylesheet" href="style_log.css">
<link
href="https://fonts.googleapis.com/css2?family=Philosopher:wght@400;700&family=Poppins:wght@400;500;600&display=swap"
rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
</head>
<body>
<!-- <a href="index.html" target="_blank"><button class="bth">HOME</button></a> -->
<form action="" method="post">
<div class="section">
<div class="container">
<div class="row full-height justify-content-center">
<div class="col-12 text-center align-self-center py-5">
<div class="section pb-5 pt-5 pt-sm-2 text-center">
<div class="card-3d-wrap mx-auto">
<div class="card-3d-wrapper">
<div class="card-front">
<div class="center-wrap">
<div class="section text-center">
<h4 class="mb-4 pb-3">Forgot Password</h4>
<div class="form-group mt-2">
<input type="number" name="code" class="form-style"
placeholder="Enter Otp" id="code" autocomplete="on">
<i class="input-icon uil uil-lock-alt"></i>
</div>
<!-- <a href="#" class="btn mt-4">submit</a> -->
<input type="submit" value="Send" class="btn mt-4">
<p class="mb-0 mt-4 text-center"><a href="Forgotpass.php" class="link">Didn't Received
Code ?
</a></p>
<?php
session_start();
include 'connect.php';
if($_SERVER["REQUEST_METHOD"] == "POST"){
$code = $_POST["code"];
if($code == $_SESSION['Otp']){
header("Location: resetpass.php");
}
else{
echo '<div class="alert alert-danger" role="alert">
Invali Otp !
</div>';
}
}
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</body>
</html>