-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify.php
More file actions
56 lines (56 loc) · 1.87 KB
/
verify.php
File metadata and controls
56 lines (56 loc) · 1.87 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
<link rel="manifest" href="images/site.webmanifest">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>Verify Email</title>
</head>
<body>
<div id="particles-js"></div>
<section>
<div class="box">
<div class="container-f">
<div class="form">
<h2>Email Verification</h2>
<form action="includes/verify.inc.php" method="POST">
<div class="inputBox">
<input type="number" name="otp" placeholder="Enter verification code" required>
</div>
<div class="inputBox">
<input type="submit" name="check" value="Submit">
</div>
<?php
if (isset($_GET["info"])) {
if ($_GET["info"] == "success") {
echo "<p class='forget'>We've sent a verification code to your email.</p>";
}
else if ($_GET["info"] == "emailverified") {
echo "<p class='forget'>Email Verified Successfully. <a href='login.php'>Login</a></p>";
}
}
else {
if (isset($_GET["error"])) {
if ($_GET["error"] == "invalidcode") {
echo "<p class='forget'>Invalid OTP. </p>";
}
else if ($_GET["error"] == "failed") {
echo "<p class='forget'>Something went wrong. </p>";
}
}
}
?>
</form>
</div>
</div>
</div>
</section>
<script src="js/particles.min.js"></script>
<script src="js/app.js"></script>
</body>
</html>