Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add 2FA info in admin

Chocobozzz37e13bbcd277
diff --git a/client/src/app/+admin/overview/users/user-list/user-list.component.html b/client/src/app/+admin/overview/users/user-list/user-list.component.html
index c67c2d2c59..4c54553d59 100644
--- a/client/src/app/+admin/overview/users/user-list/user-list.component.html
+++ b/client/src/app/+admin/overview/users/user-list/user-list.component.html
@@ -72,6 +72,10 @@
{{ user.totalVideoFileSize | bytes }}
</td>
+ <td *ngIf="table.isColumnDisplayed('twoFactorEnabled')">
+ <span *ngIf="user.twoFactorEnabled" i18n i18n-ngbTooltip ngbTooltip="Two factor authentication is enabled" class="pt-badge badge-green">2FA</span>
+ </td>
+
<td *ngIf="table.isColumnDisplayed('pluginAuth')">
<span *ngIf="user.pluginAuth" [ngbTooltip]="user.pluginAuth">{{ user.pluginAuth.replace('peertube-plugin-', '') }}</span>
</td>
diff --git a/client/src/app/+admin/overview/users/user-list/user-list.component.ts b/client/src/app/+admin/overview/users/user-list/user-list.component.ts
index d964b95f73..214aa78d16 100644
--- a/client/src/app/+admin/overview/users/user-list/user-list.component.ts
+++ b/client/src/app/+admin/overview/users/user-list/user-list.component.ts
@@ -38,6 +38,7 @@ type ColumnName =
| 'totalVideoFileSize'
| 'createdAt'
| 'lastLoginDate'
+ | 'twoFactorEnabled'
| 'pluginAuth'
@Component({
@@ -102,6 +103,7 @@ export class UserListComponent implements OnInit, OnDestroy {
{ id: 'videoQuotaUsed', label: $localize`Video quota`, sortable: true },
{ id: 'videoQuotaDailyUsed', label: $localize`Daily quota`, sortable: false },
{ id: 'totalVideoFileSize', label: $localize`Total size`, sortable: false },
+ { id: 'twoFactorEnabled', label: $localize`2FA`, sortable: false },
{ id: 'pluginAuth', label: $localize`Auth plugin`, sortable: false },
{ id: 'createdAt', label: $localize`Created`, sortable: true },
{ id: 'lastLoginDate', label: $localize`Last login`, sortable: true }