feat: make MFA status visible in WebAdmin (#844)

Signed-off-by: Tim Birkett <tim.birkett@sainsburys.co.uk>
This commit is contained in:
Tim Birkett
2022-05-17 18:27:12 +01:00
committed by GitHub
parent 9abd186166
commit a87aa9b98e
4 changed files with 15 additions and 0 deletions

View File

@@ -32,6 +32,7 @@
<th>ID</th>
<th>Username</th>
<th>Status</th>
{{if .HasMFA }}<th>MFA</th>{{end}}
<th>Permissions</th>
<th>Other</th>
</tr>
@@ -42,6 +43,7 @@
<td>{{.ID}}</td>
<td>{{.Username}}</td>
<td>{{if eq .Status 1 }}Active{{else}}Inactive{{end}}</td>
{{if $.HasMFA }}<td>{{if .Filters.TOTPConfig.Enabled }}Enabled{{else}}-{{end}}</td>{{end}}
<td>{{.GetPermissionsAsString}}</td>
<td>{{.GetInfoString}}</td>
</tr>

View File

@@ -32,6 +32,7 @@
<th>ID</th>
<th>Username</th>
<th>Status</th>
{{if .HasMFA }}<th>MFA</th>{{end}}
<th>Bandwidth</th>
<th>Quota</th>
<th>Other</th>
@@ -43,6 +44,7 @@
<td>{{.ID}}</td>
<td>{{.Username}}</td>
<td>{{.GetStatusAsString}}</td>
{{if $.HasMFA }}<td>{{.GetMFAStatusAsString}}</td>{{end}}
<td>{{.GetBandwidthAsString}}</td>
<td>{{.GetQuotaSummary}}</td>
<td>{{.GetInfoString}}</td>