Skip to content

Commit 050190c

Browse files
committed
20240626_00002
1 parent 975e508 commit 050190c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Entregas/Proyecto/js/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
*/
5656
function mostrarLogin() {
5757
let docuLogin = document.getElementById('contenido');
58+
event.preventDefault()
5859
document.getElementById('contenido').innerHTML =`
5960
<div id="formlogin"><img src="./img/logo.jpg" alt="Logo">
6061
<BR><h2>Iniciar Sesión</h2>
@@ -114,7 +115,7 @@
114115
* FUNCION PARA VALIDACIONES USUARIO
115116
*/
116117
let validacion = function(){
117-
event.preventDefault()
118+
118119
let usr=document.querySelector('#GetUsuario').value;//Toma valor ingresado en campo Usuario
119120
let pas=document.querySelector('#GetPass').value;//Toma valor ingresado en campo PAssword
120121
let usuarios = JSON.parse(localStorage.getItem('usuarios')) || [];//Lee localstorage para tomar informacion del primer USR y PASS, si no hay valores retorna Array Vacio (derecha del OR)

0 commit comments

Comments
 (0)