get user by admin WIP

This commit is contained in:
Valentin CZERYBA 2022-08-05 21:20:14 +02:00
parent cb3aedf394
commit 18704d4dcc
2 changed files with 23 additions and 1 deletions

View File

@ -25,4 +25,17 @@ function signOut(){
}
});
});
}
function getQuery(param){
query = location.search.split("?")[1];
var variables = query.split("&")
var result = "";
for (var i=0; i<variables.length; i++){
if(variables[i].split("=")[0] == param){
result = variables[i].split("=")[1];
}
}
return result;
}

View File

@ -1,2 +1,11 @@
checkToken();
signOut();
signOut();
var id = getParam("id");
instance.get("users/"+id, {withCredentials: true})
.then(function(response){
})
.catch(function(error){
});