UserManager.FindAsync(username, password) not available in ASP.NET 5 / Identity 3 -
i'm trying upgrade project asp.net 5 / mvc 6.
the usermanager came aspnet.identity used have findasync method pass in username , password. doesn't seem there anymore.
i don't think need signinmanager or authentication i'm using jwt bearer authentication. need check username , password valid before grant access token,
simply use usermanager.findbynameasync()
find user object check password:
var user = await _usermanager.findbynameasync(username); if(user!=null && await _usermanager.checkpasswordasync(user, password)) { // user valid whatever want }
Comments
Post a Comment