get user by admin WIP
This commit is contained in:
parent
cb3aedf394
commit
18704d4dcc
@ -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;
|
||||
}
|
@ -1,2 +1,11 @@
|
||||
checkToken();
|
||||
signOut();
|
||||
signOut();
|
||||
var id = getParam("id");
|
||||
|
||||
instance.get("users/"+id, {withCredentials: true})
|
||||
.then(function(response){
|
||||
|
||||
})
|
||||
.catch(function(error){
|
||||
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user