Skip to content

Commit 3c28ae7

Browse files
committed
Missing changes.
1 parent 80925ac commit 3c28ae7

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Account/IdentityRedirectManager.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
using System.Diagnostics.CodeAnalysis;
21
using Microsoft.AspNetCore.Components;
2+
using Microsoft.AspNetCore.Identity;
3+
using BlazorWeb_CSharp.Data;
34

45
namespace BlazorWeb_CSharp.Components.Account;
56

@@ -49,5 +50,5 @@ public void RedirectToCurrentPageWithStatus(string message, HttpContext context)
4950
=> RedirectToWithStatus(CurrentPath, message, context);
5051

5152
public void RedirectToInvalidUser(UserManager<ApplicationUser> userManager, HttpContext context)
52-
=> redirectManager.RedirectToWithStatus("Account/InvalidUser", $"Error: Unable to load user with ID '{userManager.GetUserId(context.User)}'.", context);
53+
=> RedirectToWithStatus("Account/InvalidUser", $"Error: Unable to load user with ID '{userManager.GetUserId(context.User)}'.", context);
5354
}

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Account/Pages/Manage/Email.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
@inject UserManager<ApplicationUser> UserManager
1111
@inject IEmailSender<ApplicationUser> EmailSender
1212
@inject NavigationManager NavigationManager
13+
@inject IdentityRedirectManager RedirectManager
1314

1415
<PageTitle>Manage email</PageTitle>
1516

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Account/Pages/Manage/PersonalData.razor

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
@page "/Account/Manage/PersonalData"
22

3+
@using Microsoft.AspNetCore.Identity
4+
@using BlazorWeb_CSharp.Data
5+
6+
@inject UserManager<ApplicationUser> UserManager
7+
@inject IdentityRedirectManager RedirectManager
8+
39
<PageTitle>Personal Data</PageTitle>
410

511
<StatusMessage />

0 commit comments

Comments
 (0)