AspNetCore.Identity.MongoDbCore icon indicating copy to clipboard operation
AspNetCore.Identity.MongoDbCore copied to clipboard

MongoUserStore uses wrong Context in UpdateAsync?

Open christian-ellerbrock-nexxtsoft opened this issue 8 months ago • 0 comments

I ran into issues using the update command. Tracking this down to MongoUserStore.UpdateAsync(...) I found that

var collection = MongoRepository.Context.GetCollection<TUser>();

gives me an exception (Property not defined). Changing this to

var collection = Context.GetCollection<TUser>();

fixed the problem in my envrionment.