0
我剛裝了三個的NuGet包標識2.0:編制問題的新身份Framework 2.0的 - 哪裏是ApplicationUserManager
◦Install-Package Microsoft.AspNet.Identity.EntityFramework –Version 2.0.0
◦Install-Package Microsoft.AspNet.Identity.Core -Version 2.0.0
◦Install-Package Microsoft.AspNet.Identity.OWIN -Version 2.0.0
我想實現忘記密碼的功能,這將無法編譯,因爲它贏得了找不到ApplicationUserManager。我該如何解決?
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
var manager = Context.GetOwinContext().GetUserManager<ApplicationUserManager>();