I am trying to create a custom implementation of IUserLoginStore for MongoDB, and I noticed when using
UserManager<ApplicationUser>
using method
var userResult = await _userManager.CreateAsync(user);
he goes through implementation
GetUserNameAsync FindByNameAsync SetNormalizedUserNameAsync GetUserIdAsync
I would like to clarify two questions:
What is the purpose of having NormalizedUsername and UserName? the only difference is that I could notice id that normalizedUserName is uppercase.
I use my implementation only to store users from an external input (Google plus), is there a way in which I can omit the username and NormilizedUserName, since I mainly use email in these three fields, I feel like I'm duplicating data, and that makes no sense to me.
any recommendations?
source share