Starts in:
0 DAY
5 HRS
30 MIN
45 SEC
Starts in:
0 D
5 H
30 M
45 S
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 November 20, 2024, 13:06