构建自定义IUserPasswordStore以连接到旧版系统的用户名/密码表.密码在表中用自定义代码散列,因此我需要为PasswordSignInAsync编写自定义代码.
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.
我是否需要覆盖PasswordSignInAsync还是可以提供一种仅对密码进行哈希处理的方法?如果我确实覆盖了整个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?
推荐答案那比我想象的要容易.
覆盖UserManager中的CheckPasswordAsync.
更多推荐
在Identity 2.1中编写自定义IUserPasswordStore和SignInManager.PasswordSignInAsync
发布评论