Browse Source
fix: initialize ProfileManagementPageCreationContext in OnPostAsync of ManageModel
pull/25067/head
maliming
3 weeks ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
9 additions and
2 deletions
-
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Manage.cshtml.cs
|
|
|
@ -47,8 +47,15 @@ public class ManageModel : AccountPageModel |
|
|
|
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(); |
|
|
|
} |
|
|
|
} |
|
|
|
|