I'm using AspNet.Identity.Owin setup for security, and I can generate and email a token that passes this token back into a [POST] reset password action, however I am struggling with how to check the token and reset the appropriate users password. Here is
my code section leading up to the [Post] password reset (I have ommited views, as they seem to not be having any issues):
First my controller action that allows the user to enter their email address to receive a lost password reset email:
[AllowAnonymous]
public ActionResult LostPassword() {
var viewModel = new LostPasswordViewModel();
return View(viewModel);
}
and then the post
[AllowAnonymous]
[HttpPost]
public ActionResult LostPassword( LostPasswordViewModel passwordModel ) {
string tryEmail = passwordModel.Email;
var tryUser = UserManager.FindByEmail( ...
Go to the complete details ...