Ends in:
2 DAYS
2 HRS
24 MIN
42 SEC
Ends in:
2 D
2 H
24 M
42 S
Open Closed

How to add to extend the Identity Server Personal info page #2792


User avatar
0
AlderCove created

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:"
  1. Created Language enum:
  2. Added extension property to Identity user:
  3. Added extension properties to the Dtos:
  4. 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:

  1. Creating a new Default.cshtml to include the new Language property
  2. Creating a new MyAccountProfilePersonalInfoManagementGroupViewComponent class that inherits from AccountProfilePersonalInfoManagementGroupViewComponent
  3. Creating a new MyPersonalInfoModel class that contains the Language property
  4. Override the InvokeAsync method in MyAccountProfilePersonalInfoManagementGroupViewComponent to map from ProfileDto to MyPersonalInfoModel
  5. 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
  6. 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)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    On the separate Identity server project, I attempted to override the AccountProfilePersonalInfoManagementGroupViewComponent by:

    Can you share the project? liming.ma@volosoft.com

  • User Avatar
    0
    AlderCove created

    Hi @maliming

    I'd prefer not to share, are you unable to reproduce the error?

    Thanks Jamie

  • User Avatar
    0
    jhsanc created

    Hello, sorry but I had a question about that, Is possible add tab to Account Information but in Blazor Wasm?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    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.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 02, 2024, 12:35