mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Add 2FA info in admin
This commit is contained in:
parent
c9905ecd3a
commit
37e13bbcd2
2 changed files with 6 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue