From 8fc593a73ef92247a7d971387b9d46d43eafaf91 Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Wed, 8 Jul 2020 19:18:40 +0200 Subject: [PATCH] Improve secondary login view --- BTCPayServer/Views/Account/LoginWith2fa.cshtml | 16 ++++++++-------- BTCPayServer/Views/Account/LoginWithU2F.cshtml | 17 ++++++++++------- .../Views/Account/SecondaryLogin.cshtml | 12 +++--------- 3 files changed, 21 insertions(+), 24 deletions(-) diff --git a/BTCPayServer/Views/Account/LoginWith2fa.cshtml b/BTCPayServer/Views/Account/LoginWith2fa.cshtml index 2759e8378..b145b3b33 100644 --- a/BTCPayServer/Views/Account/LoginWith2fa.cshtml +++ b/BTCPayServer/Views/Account/LoginWith2fa.cshtml @@ -1,20 +1,20 @@ @model LoginWith2faViewModel -
-
+
+

Two-factor authentication


-
+
- +
@@ -28,14 +28,14 @@
-
-

- Don't have access to your authenticator device? You can - log in with a recovery code. +

+ Don't have access to your authenticator device? +
+ You can log in with a recovery code.

diff --git a/BTCPayServer/Views/Account/LoginWithU2F.cshtml b/BTCPayServer/Views/Account/LoginWithU2F.cshtml index 682854b98..d98eb838f 100644 --- a/BTCPayServer/Views/Account/LoginWithU2F.cshtml +++ b/BTCPayServer/Views/Account/LoginWithU2F.cshtml @@ -13,19 +13,22 @@ -
-
+
+
-

U2F Authentication

+

+ U2F Authentication +


+
+ +

Insert your U2F device or hardware wallet into your computer's USB port. If it has a button, tap on it.

+
-

Insert your U2F device or a hardware wallet into your computer's USB port. If it has a button, tap on it.

+
-
- -
diff --git a/BTCPayServer/Views/Account/SecondaryLogin.cshtml b/BTCPayServer/Views/Account/SecondaryLogin.cshtml index 1d985d167..9b2760645 100644 --- a/BTCPayServer/Views/Account/SecondaryLogin.cshtml +++ b/BTCPayServer/Views/Account/SecondaryLogin.cshtml @@ -7,15 +7,9 @@
@if (Model.LoginWith2FaViewModel != null && Model.LoginWithU2FViewModel != null) { -
-
-

@ViewData["Title"]

-
- -
-
-
- }else if (Model.LoginWith2FaViewModel == null && Model.LoginWithU2FViewModel == null) +
+ } + else if (Model.LoginWith2FaViewModel == null && Model.LoginWithU2FViewModel == null) {