5
Hiện tại, tôi đã tạo mật khẩu băm bằng ASP.NET Identity 2.0.Di chuyển băm mật khẩu từ ASP.NET Identity 2.0 đến 3.0
Có thể xác minh các mật khẩu này bằng ASP.NET Identity 3.0 mới không?
Hiện tại, tôi đã tạo mật khẩu băm bằng ASP.NET Identity 2.0.Di chuyển băm mật khẩu từ ASP.NET Identity 2.0 đến 3.0
Có thể xác minh các mật khẩu này bằng ASP.NET Identity 3.0 mới không?
Cố gắng thiết lập PasswordHasherCompatibilityMode
để V2 (sau đây mã đã không kiểm tra):
public void ConfigureServices(IServiceCollection services)
{
services.Configure<PasswordHasherOptions>(options => options.CompatibilityMode = PasswordHasherCompatibilityMode.IdentityV2);
}
cũng thấy How to set PasswordHasherCompatibilityMode.IdentityV3 in ASP.NET 5 Identity?
tôi đã bật tùy chọn này. Tôi nhận thấy một cái gì đó kỳ lạ. Khi tôi tạo tài khoản bằng Identity 3.0 với IdentityV2 CompatibilityMode thì nó hoạt động trong ứng dụng sử dụng Identity 2.0. Nhưng khi tôi tạo tài khoản trong ứng dụng sử dụng Identity 2.0, tôi không thể đăng nhập vào tài khoản này bằng ứng dụng có Identity 3.0 và CompatibilityMode. –
nevermind, tài khoản cũ của tôi có trường "NormalizedUserName" trống trong bảng. Bây giờ nó hoạt động chính xác. Cảm ơn –