rename file and remove console.log

This commit is contained in:
2022-08-06 21:48:41 +02:00
parent a327443c37
commit 106ff00ce3
7 changed files with 206 additions and 206 deletions

View File

@@ -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){