+
The password reset link is invalid.
diff --git a/src/mudblazor/MudBlazor.Template/Components/Account/Pages/Lockout.razor b/src/mudblazor/MudBlazor.Template/Components/Account/Pages/Lockout.razor index a8d1e0af..017e31d3 100644 --- a/src/mudblazor/MudBlazor.Template/Components/Account/Pages/Lockout.razor +++ b/src/mudblazor/MudBlazor.Template/Components/Account/Pages/Lockout.razor @@ -4,5 +4,5 @@This account has been locked out, please try again later.
+This account has been locked out, please try again later.
Please check your email to confirm your account.
} @code { diff --git a/src/mudblazor/MudBlazor.Template/Components/Account/Pages/ResendEmailConfirmation.razor b/src/mudblazor/MudBlazor.Template/Components/Account/Pages/ResendEmailConfirmation.razor index 86e4ee8b..7aff4072 100644 --- a/src/mudblazor/MudBlazor.Template/Components/Account/Pages/ResendEmailConfirmation.razor +++ b/src/mudblazor/MudBlazor.Template/Components/Account/Pages/ResendEmailConfirmation.razor @@ -27,7 +27,7 @@- Your password has been reset. Please click here to log in. +
+ Your password has been reset. Please click here to log in.
diff --git a/src/mudblazor/MudBlazor.Template/Components/Account/Pages/_Imports.razor b/src/mudblazor/MudBlazor.Template/Components/Account/Pages/_Imports.razor index ef2581cd..78eca821 100644 --- a/src/mudblazor/MudBlazor.Template/Components/Account/Pages/_Imports.razor +++ b/src/mudblazor/MudBlazor.Template/Components/Account/Pages/_Imports.razor @@ -1,3 +1,3 @@ @using MudBlazor @using MudBlazor.Template.Components.Account.Shared -@layout AccountLayout +@attribute [ExcludeFromInteractiveRouting] diff --git a/src/mudblazor/MudBlazor.Template/Components/Account/PersistingRevalidatingAuthenticationStateProvider.cs b/src/mudblazor/MudBlazor.Template/Components/Account/PersistingRevalidatingAuthenticationStateProvider.cs deleted file mode 100644 index 5be232d3..00000000 --- a/src/mudblazor/MudBlazor.Template/Components/Account/PersistingRevalidatingAuthenticationStateProvider.cs +++ /dev/null @@ -1,109 +0,0 @@ -using System.Diagnostics; -using System.Security.Claims; -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Authorization; -using Microsoft.AspNetCore.Components.Server; -using Microsoft.AspNetCore.Components.Web; -using Microsoft.AspNetCore.Identity; -using Microsoft.Extensions.Options; -using MudBlazor.Template.Client; -using MudBlazor.Template.Data; - -namespace MudBlazor.Template.Components.Account; - -// This is a server-side AuthenticationStateProvider that revalidates the security stamp for the connected user -// every 30 minutes an interactive circuit is connected. It also uses PersistentComponentState to flow the -// authentication state to the client which is then fixed for the lifetime of the WebAssembly application. -internal sealed class PersistingRevalidatingAuthenticationStateProvider : RevalidatingServerAuthenticationStateProvider -{ - private readonly IServiceScopeFactory scopeFactory; - private readonly PersistentComponentState state; - private readonly IdentityOptions options; - - private readonly PersistingComponentStateSubscription subscription; - - private TaskLoading...
-} -else -{ - @Body -} - -@code { - [CascadingParameter] - private HttpContext? HttpContext { get; set; } - - protected override void OnParametersSet() - { - if (HttpContext is null) - { - // If this code runs, we're currently rendering in interactive mode, so there is no HttpContext. - // The identity pages need to set cookies, so they require an HttpContext. To achieve this we - // must transition back from interactive mode to a server-rendered page. - NavigationManager.Refresh(forceReload: true); - } - } -} diff --git a/src/mudblazor/MudBlazor.Template/Components/Account/Shared/ManageLayout.razor b/src/mudblazor/MudBlazor.Template/Components/Account/Shared/ManageLayout.razor index 6ab82b4b..38c4cee1 100644 --- a/src/mudblazor/MudBlazor.Template/Components/Account/Shared/ManageLayout.razor +++ b/src/mudblazor/MudBlazor.Template/Components/Account/Shared/ManageLayout.razor @@ -1,5 +1,9 @@ @inherits LayoutComponentBase -@layout AccountLayout +@*#if (UseWebAssembly && InteractiveAtRoot) +@layout MudBlazor.Template.Client.Layout.MainLayout +##else +@layout MudBlazor.Template.Components.Layout.MainLayout +##endif*@