|
|
@ -334,11 +334,11 @@ namespace Yavsc.Controllers
|
|
|
|
|
|
|
|
|
|
|
|
// For more information on how to enable account confirmation and password reset please visit http://go.microsoft.com/fwlink/?LinkID=532713
|
|
|
|
// For more information on how to enable account confirmation and password reset please visit http://go.microsoft.com/fwlink/?LinkID=532713
|
|
|
|
// Send an email with this link
|
|
|
|
// Send an email with this link
|
|
|
|
//var code = await _userManager.GeneratePasswordResetTokenAsync(user);
|
|
|
|
var code = await _userManager.GeneratePasswordResetTokenAsync(user);
|
|
|
|
//var callbackUrl = Url.Action("ResetPassword", "Account", new { userId = user.Id, code = code }, protocol: HttpContext.Request.Scheme);
|
|
|
|
var callbackUrl = Url.Action("ResetPassword", "Account", new { userId = user.Id, code = code }, protocol: HttpContext.Request.Scheme);
|
|
|
|
//await _emailSender.SendEmailAsync(model.Email, "Reset Password",
|
|
|
|
await _emailSender.SendEmailAsync(_siteSettings,_smtpSettings,model.Email, "Reset Password",
|
|
|
|
// "Please reset your password by clicking here: <a href=\"" + callbackUrl + "\">link</a>");
|
|
|
|
"Please reset your password by clicking here: <a href=\"" + callbackUrl + "\">link</a>");
|
|
|
|
//return View("ForgotPasswordConfirmation");
|
|
|
|
return View("ForgotPasswordConfirmation");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// If we got this far, something failed, redisplay form
|
|
|
|
// If we got this far, something failed, redisplay form
|
|
|
|