If you're creating a bug/problem report, please include followings:
- ABP Framework version: v5.1.4
- UI type: MVC / Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes
- Exception message and stack trace:
- Steps to reproduce the issue:"
- Created Language enum:
- Added extension property to Identity user:
- Added extension properties to the Dtos:
- Works correctly in the angular User create/edit form:
I want the user to be able to update this field too and available in the Account personal info tab.
On the separate Identity server project, I attempted to override the AccountProfilePersonalInfoManagementGroupViewComponent by:
- Creating a new Default.cshtml to include the new Language property
- Creating a new MyAccountProfilePersonalInfoManagementGroupViewComponent class that inherits from AccountProfilePersonalInfoManagementGroupViewComponent
- Creating a new MyPersonalInfoModel class that contains the Language property
- Override the InvokeAsync method in MyAccountProfilePersonalInfoManagementGroupViewComponent to map from ProfileDto to MyPersonalInfoModel
- Adding new AutoMapper Profile to the Identity Server project and creating the map from ProfileDto to MyPersonalInfoModel, including configuration to map the extra property to the Language property in MyPersonalInfoModel
- Configuring the AutoMapper profile in the module:
When I do all this I get the error above.
Can you please let me know the correct approach for extending the PersonalInfo model and UI and ensuring the user can update this property?
Thanks
4 Answer(s)
-
0
hi
On the separate Identity server project, I attempted to override the AccountProfilePersonalInfoManagementGroupViewComponent by:
Can you share the project? liming.ma@volosoft.com
-
0
Hi @maliming
I'd prefer not to share, are you unable to reproduce the error?
Thanks Jamie
-
0
Hello, sorry but I had a question about that, Is possible add tab to Account Information but in Blazor Wasm?
-
0
I'd prefer not to share
You can create a new template project and copy your code then share it.
Hello, sorry but I had a question about that, Is possible add tab to Account Information but in Blazor Wasm?
It should work. You can try it.