问题
Building a custom IUserPasswordStore to connect to a legacy system's username/password table. The password is hashed with custom code in the table so I need to write custom code for PasswordSignInAsync.
Do I need to override PasswordSignInAsync or is there a method I can provide that just does the hashing of the password? If I do override the entire PasswordSignInAsync is there sample code somewhere showing me what needs to be done in the method?
回答1:
That was easier than I thought.
Override CheckPasswordAsync in UserManager.
来源:https://stackoverflow.com/questions/27789015/writing-a-custom-iuserpasswordstore-and-signinmanager-passwordsigninasync-in-ide