Open Closed

How to override IdentityUser validation check creating an abp user. #4232


User avatar
0
tommy.reynolds@pentair.com created

I need to create multiple users with same email account, usernames will be different. how I can override or change the email already exists validation on backend.


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can override the UserValidator<IdentityUser> service.

    UserValidator<IdentityUser> : IUserValidator<IdentityUser>
    

    https://github.com/dotnet/aspnetcore/blob/release/6.0/src/Identity/Extensions.Core/src/UserValidator.cs#L81

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38