Open Closed

Customizing Create User Modal with random password generation #8689


User avatar
0
RobertSCG created

Hello ,

I want to customize the new user modal :

the customization requires adding a random password generation function to the password input in modal , and set initial value for Force password change checkbox.

The random password generation function can be inherited from this feature where we have a button to generate random password:

questions : Which components should be ovewritten to achieve such actions in user creation modal ? From which component should I analyze the code to get the random password generating function ?

  • ABP Framework version: 9.0.2
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Serve)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

4 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello ,

    Can you create a project in ABP Studio with the latest version where the random password generation functionality is available.

    Thank you.

  • User Avatar
    0
    RobertSCG created

    Hello ,

    i know that this function exsists , but isn't it design to modify exsisting password ?

    my goal is to re-use this function by customizing New User modal

  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    Hello, You can utilize the dynamic form extensions to customize the form values as explained in this documentation: https://abp.io/docs/latest/framework/ui/angular/dynamic-form-extensions You need to use these specific keys in this case: import { eIdentityComponents, IdentityCreateFormPropContributors } from '@volo/abp.ng.identity';

    The random password generation functionality is managed within this implementation https://github.com/abpframework/abp/blob/3aa77850d7ba7f0410039fb2c4506c8bc23513c8/npm/ng-packs/packages/core/src/lib/utils/generator-utils.ts#L23

    You can also adjust the default user entity actions by following this documentation : https://abp.io/docs/latest/framework/ui/angular/entity-action-extensions

  • User Avatar
    0
    RobertSCG created

    Hellom

    Is there something for Blazor Server like extending a forms ?

Made with ❤️ on ABP v9.2.0-preview. Updated on January 23, 2025, 12:17