Browse Source

fix: initialize ProfileManagementPageCreationContext in OnPostAsync of ManageModel

pull/25067/head
maliming 3 weeks ago
parent
commit
b262f71c32
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 11
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/Manage.cshtml.cs

11
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Manage.cshtml.cs

@ -47,8 +47,15 @@ public class ManageModel : AccountPageModel
return Page(); return Page();
} }
public virtual Task<IActionResult> OnPostAsync() public virtual async Task<IActionResult> OnPostAsync()
{ {
return Task.FromResult<IActionResult>(Page()); ProfileManagementPageCreationContext = new ProfileManagementPageCreationContext(ServiceProvider);
foreach (var contributor in Options.Contributors)
{
await contributor.ConfigureAsync(ProfileManagementPageCreationContext);
}
return Page();
} }
} }

Loading…
Cancel
Save