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)
-
0
-
0
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
-
0
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
-
0
Hellom
Is there something for Blazor Server like extending a forms ?