-
Notifications
You must be signed in to change notification settings - Fork 1
/
otp.php
56 lines (52 loc) · 1.8 KB
/
otp.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
<?php
session_start();
if(!isset($_SESSION['otpEmail'])) {
?>
<script>
location.replace('./index.php');
</script>
<?php
}
?>
<!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="stylesheet" href="./common/forms.css">
<link rel="icon" type="image/png" href="images/favicon.png" sizes="80x80">
<title>OTP</title>
</head>
<body>
<section>
<div class="container">
<div class="user signInBox">
<div class="imgBx">
<img src="./images/login-min.jpg" id="image" alt="Side Image">
</div>
<div class="formBx">
<form action="#" method="POST">
<h3 class="logo">Somaiya Polytechnic</h3>
<p class="notify">If you haven't found mail, please check under spam folder</p>
<h2>VERIFY OTP</h2>
<input required type="number" placeholder="Enter 6 digit OTP" name="otp">
<input type="submit" value="Verify OTP" class="otpButton">
</form>
</div>
</div>
</div>
<div class="bg-balls"></div>
</section>
<script>
let compressImage = document.querySelector('#image');
let qualityImage = document.createElement('img');
qualityImage.src = './images/login.jpg';
qualityImage.onload = function() {
compressImage.src = this.src;
}
</script>
<script src="./javascript/otp.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
</body>
</html>