Open Closed

Should not be able to create a user with an email address equal to the username of another user #7775


User avatar
0
tjinc created
  • ABP Framework version: v8.2.2
  • UI Type: Angular
  • Database System: EF Core
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes (separated OpenIdDict auth server)
  • Exception message and full stack trace:
  • Steps to reproduce the issue:
    • Log in as host admin
    • Create a user with username john.smith@example.com and email john.smith2@example.com
    • Create another user with username john.smith3@example.com and email john.smith@example.com
  • Expected behaviour: Error when creating user to say a user already exists with username 'john.smith@example.com'.
  • Actual behaviour: User is created successfully, but the second user with username john.smith3@example.com can now no longer log into their account using their email address.

This is very similar to https://abp.io/support/questions/5482/Should-not-be-able-to-create-a-user-with-a-username-equal-to-the-email-address-of-another-user, just with the username and email address 'swapped'. Furthermore, the error message in the solution to the mentioned support is generic, ie "An unknown failure has occurred.", which is not informative.


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

    I will fix the problem.

    you can add a new AbpIdentityUserValidator to check email to solve it now. your ticket was refunded.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11