SimpleIdServer icon indicating copy to clipboard operation
SimpleIdServer copied to clipboard

Enforce case-insensitive uniqueness for the Name field in the Users table

Open HappyRoot opened this issue 2 months ago • 1 comments

Hello Currently, the Name field in the Users table allows duplicates and is case-sensitive. This can lead to data inconsistency and confusion. Could you please add a database constraint (or modify the field) to ensure the Name field is unique and case-insensitive?

Thank you for your assistance!

HappyRoot avatar Dec 03 '25 06:12 HappyRoot

Hello,

First, I apologize for the late reply. The issue has been fixed in the master branch. Instead of updating the EF Core configuration to add a database constraint, we chose to add the check in the repository logic.

Because SimpleIdServer supports multiple databases via EF Core, we did not want to provide SQL instructions for each type of database provider and therefore chose to limit the changes to the repository only.

Kind regards, SID

simpleidserver avatar Dec 08 '25 21:12 simpleidserver