forked from v4l3n71n/covas-bo
14 lines
471 B
JavaScript
14 lines
471 B
JavaScript
instance.get("token", { withCredentials: true})
|
|
.then(function(response) { console.log(response) })
|
|
.catch(function(error){
|
|
|
|
});
|
|
|
|
document.getElementById("signin").addEventListener("submit", function(evt){
|
|
evt.preventDefault();
|
|
var email = document.getElementById("floatingEmail");
|
|
var password = document.getElementById("floatingPassword");
|
|
if((password.value.length > 0) || (email.value.length > 0)){
|
|
console.log("request");
|
|
}
|
|
}) |