forked from MilelyM/scl-2018-01-ProyectoFinalCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
23 lines (21 loc) · 710 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$(document).ready(function(){
$('.modal').modal();
});
// iniciar sesion
/*function iniciarSesion(){
const email2 = document.getElementById('email2').value;// input email
const password2 = document.getElementById('password2').value;// imput contraseña
firebase.auth().signInWithEmailAndPassword(email2, password2)// función de firebase para auntenticar email y contraseña
.then(listo => {
redirect()
}).catch(function(error) {
// Se manejan los errores de autenticación.
var errorCode = error.code;
var errorMessage = error.message;
console.log(errorCode)
console.log(errorMessage)
});
} */
function redirect() {
location="../public/administ.html";
}