Add option to logout to destroy all sessions by this user

This commit is contained in:
Johannes Zellner
2019-11-08 21:33:17 +01:00
parent 3fecb777e8
commit f6b88518a2
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 */);
});
});
};