打开 关闭

Unneccessary validation is displaying. #2258


User avatar
0
krushnakant 创建
  • ABP Framework version: v4.4.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • In Volo.Abp.Identity.Pro module if we delete any record in Identity -> Users and create a new record with same username or email it gives error that username or email already exits.
  • Steps to reproduce the issue:"

4 答案
  • User Avatar
    0
    yekalkan 创建
    支持团队 Fullstack Developer

    Can you check if the deleted user still exists in database?

  • User Avatar
    0
    krushnakant 创建

    Yes, record is available in database. But Identity User provides soft delete functionality due to which even if the data is deleted, the data remains in the database but the field isDeleted has its value true. Which means if a user of same username/email must be allowed to get inserted after it is deleted and it's entry remains in the Db as a deleted entry.

  • User Avatar
    0
    yekalkan 创建
    支持团队 Fullstack Developer

    I created a project (v4.4.3) and created-deleted-recreated a user with same username & email. I didn't get any exception.

    Have you made any changes related with soft deletion in your project?

  • User Avatar
    0
    krushnakant 创建

    No, I don't made any changes related with soft deletion.

Made with ❤️ on ABP v8.2.0-preview Updated on 三月 25, 2024, 15:11