forked from v4l3n71n/covas-bo
rename file and remove console.log
This commit is contained in:
@@ -7,7 +7,7 @@ document.getElementById("signin").addEventListener("submit", function(evt){
|
||||
var password = document.getElementById("floatingPassword");
|
||||
if((password.value.length > 0) || (pseudo.value.length > 0)){
|
||||
instance.get("token", { auth : {username: pseudo.value, password: password.value}, withCredentials: true})
|
||||
.then(function(response) { location.href="html/home.html"; })
|
||||
.then(function(response) { location.href="html/users.html"; })
|
||||
.catch(function(error){
|
||||
|
||||
switch (error.response.status){
|
||||
|
Reference in New Issue
Block a user