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

@@ -140,5 +140,28 @@
</div>
</div>
<br/>
<div class="section-header">
<div class="text-left">
<h3>Sessions</h3>
</div>
</div>
<div class="card">
<div class="grid-item-top">
<div class="row">
<div class="col-xs-12">
<p>You are logged {{ activeTokenCount }} times into applications, including this session.</p>
<hr/>
<h4>Active Applications:</h4>
<p ng-repeat="client in activeClients"><b>{{ client.name }} ({{client.activeTokens.length}} times)</b></p>
<hr/>
<button class="btn btn-outline btn-xs btn-danger pull-right" ng-click="revokeTokens()">Revoke access to all</button>
</div>
</div>
</div>
</div>
<!-- Offset the footer -->
<br/><br/>