diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Layout/MainLayout.razor.scss b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Layout/MainLayout.razor.scss index 812df4c04a..effcd9f6ed 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Layout/MainLayout.razor.scss +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Layout/MainLayout.razor.scss @@ -123,6 +123,7 @@ main { .form-submit-button { width: 100%; + max-width: rem2(300px); margin-bottom: rem2(10px); } diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignInPage.razor b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignInPage.razor index 11d4a6cdd6..c39d448ea6 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignInPage.razor +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignInPage.razor @@ -21,122 +21,188 @@ @if (requiresTwoFactor is false) { -

- - @Localizer[AppStrings.GoogleSignInButtonText] -
- - @Localizer[AppStrings.GitHubSignInButtonText] - -
- - @Localizer[AppStrings.TwitterSignInButtonText] - -

- Or +
-
- - + + + + - - -
-
- - + + + - - - - @Localizer[nameof(AppStrings.SendOtpButtonText)] + OnClick="WrapHandled(TwitterSignIn)" + Title="@Localizer[AppStrings.TwitterSignUpButtonText]"> + -
+ +
+ @Localizer[AppStrings.Or] +
+ + +
+
+ + +
+
+ + + + @Localizer[nameof(AppStrings.Password)] + + @Localizer[nameof(AppStrings.ForgotPasswordLink)] + + + + +
+
+ +
+
+ + +
+
+ + + + @Localizer[nameof(AppStrings.Password)] + + @Localizer[nameof(AppStrings.ForgotPasswordLink)] + + + + +
+
+ +
+
+ @Localizer[nameof(AppStrings.OtpEmailOrPhoneNumberSubtitle)] + + + + @Localizer[nameof(AppStrings.SendOtpButtonText)] + +
+ + +
+
+
+
} else { -

@Localizer[nameof(AppStrings.TwoFactorAuthTitle)]

-
@Localizer[nameof(AppStrings.TfaProtectedSignInSubtitle)]
+ @Localizer[nameof(AppStrings.TwoFactorAuthTitle)] + @Localizer[nameof(AppStrings.TfaProtectedSignInSubtitle)]
-
-
@Localizer[nameof(AppStrings.TfaEnterCodeInSignInMessage)]
- -
-
-
@Localizer[nameof(AppStrings.TfaEnterRecoveryCodeInSignInMessage)]
- -
-
-
-
@Localizer[nameof(AppStrings.TfaTokenSignInTitle)]
- - @Localizer[nameof(AppStrings.TfaTokenGenerateButtonText)] - - -
+ + +
+ +
+ +
+
+

+
+ +
+ +
+ +
+
+

+
+ +
+ +
+
@Localizer[nameof(AppStrings.TfaTokenSignInTitle)]
+ + @Localizer[nameof(AppStrings.TfaTokenGenerateButtonText)] + + +
+
+
+
}
- + @Localizer[nameof(AppStrings.SignIn)] -
-
- - @Localizer[nameof(AppStrings.ForgotPasswordLink)] - -
-
-
+

+ @Localizer[nameof(AppStrings.DontHaveAccountMessage)] @Localizer[nameof(AppStrings.SignUp)] -
+ diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignInPage.razor.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignInPage.razor.cs index ada3ebe7d6..d93745d8e2 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignInPage.razor.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignInPage.razor.cs @@ -14,6 +14,7 @@ public partial class SignInPage private string? message; private BitColor messageColor; + private BitOtpInput otpInputRef = default!; private ElementReference messageRef = default!; @@ -128,6 +129,7 @@ private async Task SendOtp() finally { isSendingOtp = false; + await otpInputRef.FocusAsync(); } } diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignInPage.razor.scss b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignInPage.razor.scss index daea7e3daf..5a14d3db4c 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignInPage.razor.scss +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignInPage.razor.scss @@ -16,8 +16,6 @@ margin-bottom: rem2(20px); } -.tfa-token-container { +.tfa-otp-container { gap: 4px; - display: flex; - flex-flow: column; } diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignUpPage.razor b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignUpPage.razor index e8582bcd10..b504b06475 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignUpPage.razor +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignUpPage.razor @@ -26,9 +26,7 @@ ButtonType="BitButtonType.Button" OnClick="WrapHandled(GoogleSignUp)" Title="@Localizer[AppStrings.GoogleSignUpButtonText]"> - - - +
- - - + - - - +
@@ -59,7 +53,7 @@ - +
@@ -91,12 +85,12 @@
@*
- - - @Localizer[nameof(AppStrings.TermsMessage)] @Localizer[nameof(AppStrings.TermsTitle)] - - - + + + @Localizer[nameof(AppStrings.TermsMessage)] @Localizer[nameof(AppStrings.TermsTitle)] + + +
*@ @*#if (captcha == "reCaptcha")*@ @@ -111,7 +105,7 @@ @Localizer[nameof(AppStrings.SignUp)]

- + @Localizer[nameof(AppStrings.SignInMessageInSignUp)] @Localizer[nameof(AppStrings.SignIn)] @Localizer[nameof(AppStrings.Or)] diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/wwwroot/images/icons/github-icon.svg b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/wwwroot/images/icons/github-icon.svg index 83c223f849..3ca894b2ba 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/wwwroot/images/icons/github-icon.svg +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/wwwroot/images/icons/github-icon.svg @@ -1,3 +1,3 @@ - + diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/wwwroot/images/icons/google-icon.svg b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/wwwroot/images/icons/google-icon.svg index 99870a2b52..9fd2acf123 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/wwwroot/images/icons/google-icon.svg +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/wwwroot/images/icons/google-icon.svg @@ -1,3 +1,3 @@ - + diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/wwwroot/images/icons/x-icon.svg b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/wwwroot/images/icons/x-icon.svg index a8273f4eed..8d4b8f33ca 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/wwwroot/images/icons/x-icon.svg +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/wwwroot/images/icons/x-icon.svg @@ -1,3 +1,3 @@ - + diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.fa.resx b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.fa.resx index fc72e79c0a..7658cd1a0c 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.fa.resx +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.fa.resx @@ -814,6 +814,9 @@ ارسال رمز یکبار مصرف و لینک جادویی + + + ایمیل یا شماره تلفن خود را وارد کنید: رمز عبور اصلی یا یک‌بار مصرف را وارد کنید diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.fr.resx b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.fr.resx index c0faabec9c..95d500b2fe 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.fr.resx +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.fr.resx @@ -814,6 +814,9 @@ Envoyer un lien OTP et Magic + + + Entrez votre email ou votre numéro de téléphone: Soit fournir un mot de passe, soit Otp diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.resx b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.resx index e8c19ccde3..4bfee9b993 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.resx +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.resx @@ -814,6 +814,9 @@ Send OTP and Magic link + + + Enter your email or phone number: Either provide password or OTP