mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 18:37:39 -02:30
Merge pull request #5318 from jakemcdermott/5155_invalidate_token_on_logout
invalidate token on logout
This commit is contained in:
@@ -61,7 +61,10 @@ export default
|
|||||||
deleteToken: function () {
|
deleteToken: function () {
|
||||||
return $http({
|
return $http({
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
url: GetBasePath('authtoken')
|
url: GetBasePath('authtoken'),
|
||||||
|
headers: {
|
||||||
|
'Authorization': 'Token ' + this.getToken()
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user