1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00

Add 2FA info in admin

This commit is contained in:
Chocobozzz 2025-07-28 17:13:00 +02:00
parent c9905ecd3a
commit 37e13bbcd2
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 6 additions and 0 deletions

View file

@ -72,6 +72,10 @@
{{ user.totalVideoFileSize | bytes }} {{ user.totalVideoFileSize | bytes }}
</td> </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')"> <td *ngIf="table.isColumnDisplayed('pluginAuth')">
<span *ngIf="user.pluginAuth" [ngbTooltip]="user.pluginAuth">{{ user.pluginAuth.replace('peertube-plugin-', '') }}</span> <span *ngIf="user.pluginAuth" [ngbTooltip]="user.pluginAuth">{{ user.pluginAuth.replace('peertube-plugin-', '') }}</span>
</td> </td>

View file

@ -38,6 +38,7 @@ type ColumnName =
| 'totalVideoFileSize' | 'totalVideoFileSize'
| 'createdAt' | 'createdAt'
| 'lastLoginDate' | 'lastLoginDate'
| 'twoFactorEnabled'
| 'pluginAuth' | 'pluginAuth'
@Component({ @Component({
@ -102,6 +103,7 @@ export class UserListComponent implements OnInit, OnDestroy {
{ id: 'videoQuotaUsed', label: $localize`Video quota`, sortable: true }, { id: 'videoQuotaUsed', label: $localize`Video quota`, sortable: true },
{ id: 'videoQuotaDailyUsed', label: $localize`Daily quota`, sortable: false }, { id: 'videoQuotaDailyUsed', label: $localize`Daily quota`, sortable: false },
{ id: 'totalVideoFileSize', label: $localize`Total size`, 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: 'pluginAuth', label: $localize`Auth plugin`, sortable: false },
{ id: 'createdAt', label: $localize`Created`, sortable: true }, { id: 'createdAt', label: $localize`Created`, sortable: true },
{ id: 'lastLoginDate', label: $localize`Last login`, sortable: true } { id: 'lastLoginDate', label: $localize`Last login`, sortable: true }