1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-22 14:11:39 +00:00

display two-factor authentication activation in admin area

This commit is contained in:
bgamard
2017-11-17 15:18:16 +01:00
parent 642a3e10ce
commit 590bf74e98
7 changed files with 41 additions and 23 deletions

View File

@@ -216,6 +216,7 @@
"add_user": "Add a user",
"username": "Username",
"create_date": "Create date",
"totp_enabled": "Two-factor authentication enabled for this account",
"edit": {
"delete_user_title": "Delete user",
"delete_user_message": "Do you really want to delete this user? All associated documents, files and tags will be deleted",

View File

@@ -15,7 +15,10 @@
<tbody>
<tr ng-repeat="user in users | orderBy: 'username'" ng-click="editUser(user)"
ng-class="{ active: $stateParams.username == user.username }">
<td>{{ user.username }}</td>
<td>
{{ user.username }}
<span class="glyphicon glyphicon-lock" ng-show="user.totp_enabled" uib-tooltip="{{ 'settings.user.totp_enabled' | translate }}"></span>
</td>
<td>{{ user.create_date | date: dateFormat }}</td>
</tr>
</tbody>