-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMFAPantalla.html
103 lines (84 loc) · 2.71 KB
/
MFAPantalla.html
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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="login.css">
<title>Doble autentificacion</title>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-12">
<nav class="navbar navbar-dark bg-dark">
</nav>
</div>
</div>
<div class="row justify-content-center pt-5 mt-5 mr-1 ">
<div class="col-8 col-md-6 col-sm-8 col-xl-6 col-lg-5 col-">
<form method="post">
<h1 class="text-center">Ingrese Codigo</h1>
<div class="form-group mx-sm-4">
<input class="form-control" type="text" name="CodigoMFA" id="CodigoMFA" placeholder="Codigo">
<br>
<input id="log" onclick= '' value="Ingresar" class="btn btn-block btn-danger">
<br>
</div>
<span id="error_sesion"></span>
</form>
</div>
</div>
<div class="row">
<div class="col-12">
<footer>
<div class=redes>
<h3>Redes sociales</h3>
<ul>
<li><img src="icono/facebook.png"><a href="">Seguinos En Facebook</a></li>
<li><img src="icono/twitter.png"><a href="">Seguinos En Twitter</a></li>
<li><img src="icono/instagram.png"><a href="">Seguinos En Instagram</a></li>
<li><img src="icono/reddit.png"><a href="">Seguinos En Reddit</a></li>
</ul>
<p>©2020 Todos los derechos reservados || </p>
</div>
</footer>
</div>
</div>
</div>
<!--
$.ajax({
}-->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src='ValidacionExpresionesRegulares.js'></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="bootstrap/js/bootstrap.min.js" ></script>
<script>
$(document).ready(function(){
$('#log').click(function(){
var CodigoMFA=$("#CodigoMFA").val();
$.ajax({
url: 'model/DobleVerificacion.php',
data : { CodigoMFA: CodigoMFA },
type : 'POST',
beforeSend :function() {
$('#log').val("Iniciando....");
},
success: function(data) {
$('#log').val("Iniciar Sesion");
if (data==="2") {
$(location).attr('href','view/template.html');
}
else if (data==="4"){
$(location).attr('href','PruebaCliente.html');
}
else{
$('#error_sesion').html("<div class='alert alert-danger' role='alert'>Codigo Invalido!!</div>");
}
}
});
});
});
</script>
</body>
</html>