Chr*_*arz 5 asp.net asp.net-identity asp.net-core
目前,我使用ASP.NET Identity 2.0生成密码哈希.
是否可以使用新的ASP.NET Identity 3.0验证这些密码?
尝试设置PasswordHasherCompatibilityMode为 V2(以下代码未测试):
public void ConfigureServices(IServiceCollection services)
{
services.Configure<PasswordHasherOptions>(options => options.CompatibilityMode = PasswordHasherCompatibilityMode.IdentityV2);
}
Run Code Online (Sandbox Code Playgroud)
另请参阅如何在 ASP.NET 5 Identity 中设置 PasswordHasherCompatibilityMode.IdentityV3?