From 1a167290647fe8a647efb27204db52b1434e7e48 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 3 Apr 2018 14:43:12 -0400 Subject: [PATCH] added org 2fa info to admin pages --- src/Admin/Views/Organizations/Index.cshtml | 25 +++++++++++++------ .../Organizations/_ViewInformation.cshtml | 3 +++ src/Admin/Views/Users/Index.cshtml | 2 +- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/src/Admin/Views/Organizations/Index.cshtml b/src/Admin/Views/Organizations/Index.cshtml index ca2e2c37f4..b68aea05d7 100644 --- a/src/Admin/Views/Organizations/Index.cshtml +++ b/src/Admin/Views/Organizations/Index.cshtml @@ -10,12 +10,15 @@ - - + @if(!Model.SelfHosted) + { + + + } @@ -27,7 +30,7 @@ Plan Seats Created - Details + Details @@ -87,6 +90,14 @@ { } + @if(org.TwoFactorIsEnabled()) + { + + } + else + { + + } } diff --git a/src/Admin/Views/Organizations/_ViewInformation.cshtml b/src/Admin/Views/Organizations/_ViewInformation.cshtml index 047de6152f..9a14108152 100644 --- a/src/Admin/Views/Organizations/_ViewInformation.cshtml +++ b/src/Admin/Views/Organizations/_ViewInformation.cshtml @@ -18,6 +18,9 @@
Admins
@(string.IsNullOrWhiteSpace(Model.Admins) ? "None" : Model.Admins)
+
Using 2FA
+
@(Model.Organization.TwoFactorIsEnabled() ? "Yes" : "No")
+
Created
@Model.Organization.CreationDate.ToString()
diff --git a/src/Admin/Views/Users/Index.cshtml b/src/Admin/Views/Users/Index.cshtml index 447b95c63f..8304c90123 100644 --- a/src/Admin/Views/Users/Index.cshtml +++ b/src/Admin/Views/Users/Index.cshtml @@ -17,7 +17,7 @@ Email Created - Details + Details