forked from dans77777/Intern-admin-collaboration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser-otp.php
103 lines (101 loc) · 2.93 KB
/
user-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
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
<?php require_once "controllerUserData.php"; ?>
<?php
$email = $_SESSION['email'];
if($email == false){
header('Location: alogin.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- Somehow I got an error, so I comment the title, just uncomment to show -->
<!-- <title>Code Verification</title> -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="./style2.css">
</head>
<style>
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');
html,body{
background: #6665ee;
font-family: 'Poppins', sans-serif;
}
.container{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.container .form{
background: #fff;
padding: 30px 35px;
border-radius: 5px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.container .form form .form-control{
height: 40px;
font-size: 15px;
}
.container .form form .button{
background: #6665ee;
color: #fff;
font-size: 17px;
font-weight: 500;
transition: all 0.3s ease;
}
.container .form form .button:hover{
background: #5757d1;
}
.container .form form .link{
padding: 5px 0;
}
.container .form form .link a{
color: #6665ee;
}
.container .login-form form p{
font-size: 14px;
}
.container .row .alert{
font-size: 14px;
}
</style>
<body>
<div class="container">
<div class="row">
<div class="col-md-4 offset-md-4 form">
<form action="user-otp.php" method="POST" autocomplete="off">
<h2 class="text-center">Code Verification</h2>
<?php
if(isset($_SESSION['info'])){
?>
<div class="alert alert-success text-center">
<?php echo $_SESSION['info']; ?>
</div>
<?php
}
?>
<?php
if(count($errors) > 0){
?>
<div class="alert alert-danger text-center">
<?php
foreach($errors as $showerror){
echo $showerror;
}
?>
</div>
<?php
}
?>
<div class="form-group">
<input class="form-control" type="number" name="otp" placeholder="Enter verification code" required>
</div>
<div class="form-group">
<input class="form-control button" type="submit" name="check" value="Submit">
</div>
</form>
</div>
</div>
</div>
</body>
</html>