Ejemplo n.º 1
0
        public void SendPasswordResetLink(User user, string code)
        {
            SetSubject("password recovery");
            SetRecipient(user.Email);
            SetGreetingName(user.FullName);

            ViewBag.ViewSettings = viewSettings;

            var model = new ForgotPasswordViewModel();

            model.UserId = user.Id;
            model.Code   = code;

            MailSender.Deliver(Email("ForgotPassword", model));
        }