You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking at making the index on NormalizedEmail and NormalizedUserName unique. It does not seems to be possible.
I can't override this behavior by registering my own IUserStore<> that inherit from AspNetCore.Identity.Mongo.Stores.UserStore. It is not possible since EnsureIndex is called in the UserStore constructor and it will always be called.
I have considered adding another index but MongoDb is complaining that another one already exists for the same column.
The possibilities I see here is to either
Change EnsureIndex to create unique Index (this could be a config option)
Provide an empty constructor on AspNetCore.Identity.Mongo.Stores.UserStore so we can provide our own implementation that inherit from it and initialize it the way we want.
Let me know if there are a way to do this
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
I was looking at making the index on NormalizedEmail and NormalizedUserName unique. It does not seems to be possible.
I can't override this behavior by registering my own IUserStore<> that inherit from AspNetCore.Identity.Mongo.Stores.UserStore. It is not possible since EnsureIndex is called in the UserStore constructor and it will always be called.
I have considered adding another index but MongoDb is complaining that another one already exists for the same column.
The possibilities I see here is to either
Let me know if there are a way to do this
Thanks
The text was updated successfully, but these errors were encountered: