dashboard #2

Merged
v4l3n71n merged 46 commits from dashboard into master 2022-08-25 21:40:00 +00:00
2 changed files with 23 additions and 1 deletions
Showing only changes of commit 18704d4dcc - Show all commits

View File

@ -26,3 +26,16 @@ 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();
var id = getParam("id");
instance.get("users/"+id, {withCredentials: true})
.then(function(response){
})
.catch(function(error){
});