Fix app password usage for non-admins
This commit is contained in:
+21
-21
@@ -377,33 +377,33 @@
|
||||
|
||||
<div class="card">
|
||||
<div class="grid-item-top">
|
||||
<div class="row">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<p>These passwords can be used as a security measure in mobile apps.</p>
|
||||
<table class="table table-hover">
|
||||
<p>These passwords can be used as a security measure in mobile apps.</p>
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 45%">Name</th>
|
||||
<th style="width: 45%">App</th>
|
||||
<th style="width: 10%" class="text-right">Actions</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width: 45%">Name</th>
|
||||
<th style="width: 45%">App</th>
|
||||
<th style="width: 10%" class="text-right">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="password in appPassword.passwords">
|
||||
<td class="text-left elide-table-cell">
|
||||
<span uib-tooltip="{{ password.creationTime | prettyLongDate }}" class="arrow">{{ password.name }}</span>
|
||||
</td>
|
||||
<td class="text-left elide-table-cell">
|
||||
<span class="arrow">{{ password.prettyIdentifier }}</span>
|
||||
</td>
|
||||
<td class="text-right no-wrap" style="vertical-align: bottom">
|
||||
<button class="btn btn-xs btn-danger pull-right" ng-click="appPassword.del.show(password.id)" title="Delete Password"><i class="far fa-trash-alt"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr ng-repeat="password in appPassword.passwords">
|
||||
<td class="text-left elide-table-cell">
|
||||
<span uib-tooltip="{{ password.creationTime | prettyLongDate }}" class="arrow">{{ password.name }}</span>
|
||||
</td>
|
||||
<td class="text-left elide-table-cell">
|
||||
<span class="arrow">{{ password.prettyIdentifier }}</span>
|
||||
</td>
|
||||
<td class="text-right no-wrap" style="vertical-align: bottom">
|
||||
<button class="btn btn-xs btn-danger pull-right" ng-click="appPassword.del(password.id)" title="Delete Password"><i class="far fa-trash-alt"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -380,7 +380,6 @@ angular.module('Application').controller('ProfileController', ['$scope', '$locat
|
||||
$scope.appPasswordAdd.busy = false;
|
||||
$scope.appPasswordAdd.password = result;
|
||||
|
||||
console.log(result);
|
||||
$scope.appPassword.refresh();
|
||||
});
|
||||
}
|
||||
@@ -575,8 +574,6 @@ angular.module('Application').controller('ProfileController', ['$scope', '$locat
|
||||
};
|
||||
|
||||
Client.onReady(function () {
|
||||
if (!Client.getUserInfo().admin) return;
|
||||
|
||||
$scope.appPassword.refresh();
|
||||
$scope.tokens.refresh();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user