Allow users to see issued tokens and revoke them all in one

This commit is contained in:
Johannes Zellner
2016-06-08 12:56:48 +02:00
parent 401c0e1b44
commit 4c4ae08b44
3 changed files with 80 additions and 3 deletions

View File

@@ -144,9 +144,7 @@ angular.module('Application').controller('TokensController', ['$scope', 'Client'
Client.getOAuthClients(function (error, activeClients) {
if (error) return console.error(error);
$scope.activeClients = activeClients;
$scope.activeClients.forEach(refreshClientTokens);
activeClients.forEach(refreshClientTokens);
$scope.activeClients = activeClients.filter(function (c) { return c.id !== 'cid-sdk'; });
$scope.apiClient = activeClients.filter(function (c) { return c.id === 'cid-sdk'; })[0];