-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmultifactor.php
44 lines (36 loc) · 1.48 KB
/
multifactor.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="css/login.css" type="text/css">
<link rel="stylesheet" href="css/normalize.css">
<link rel="icon" href="logo.ico">
</head>
<?php
session_start();
if(!isset($_SESSION['usuario'])){
header("Location:login.php");
exit();
}
if(isset($_SESSION["usuario"]) && isset($_SESSION['codigoValido'])){
header("Location:index.php");
exit();
}?>
<body>
<div class="container-sm m-5 form">
<h1><b>Verificación SMS</b></h1>
<small class="text-body-secondary">Ingresa el código SMS para autenticarte...</small>
<div class="mt-4">
<form action="multifactorValidation.php" method="post">
<label for="codigo"><b>Código de verificación.</b></label>
<input type="number" name="codigo2FA" id="codigo" autofocus>
<input type="submit" value="Verificar" name="submit">
</form>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-BBtl+eGJRgqQAUMxJ7pMwbEyER4l1g+O15P+16Ep7Q9Q+zqX6gSbd85u4mG4QzX+" crossorigin="anonymous"></script>
</body>
</html>