Beispiel #1
0
        public async Task <IActionResult> ForgotPassword(String email)
        {
            Users user = await this.service.GetUserByEmailAsync(email);

            if (user != null)
            {
                var token = ToolkitService.GenerarToken();
                var link  = Url.Action("ResetPassword", "User", new { token, email = email }, Request.Scheme);
                this.mailService.SendMail(email, link);
            }
            return(View());
        }