formulaire pour utilisateur specifique
This commit is contained in:
@@ -13,4 +13,16 @@ function checkToken(){
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
function signOut(){
|
||||
|
||||
document.getElementById("signout").addEventListener("click", function(){
|
||||
instance.delete("token" , {withCredentials:true}).then(function(response){
|
||||
if(response.status == 200){
|
||||
location.href="/"
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user