Add option to logout to destroy all sessions by this user
This commit is contained in:
@@ -309,7 +309,7 @@ angular.module('Application').controller('ProfileController', ['$scope', '$locat
|
||||
asyncForEach($scope.activeClients.filter(function (c) { return c.id !== 'cid-webadmin'; }), revokeTokensByClient, function () {
|
||||
// WARNING keep in sync with clients.js in box code
|
||||
revokeTokensByClient('cid-webadmin', function () {
|
||||
Client.logout(); // this destroys the OAuth session
|
||||
Client.logout(true /* destroy all OAuth sessions for this user */);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user