Beispiel #1
0
        public ActionResult ForgotPassword(string email)
        {
            string username = Membership.GetUserNameByEmail(email);

            if (username != null)
            {
                var    user        = Membership.GetUser(username);
                string newPassword = user.ResetPassword();
                UpdateUtils.SendPasswordResetNotification(user, newPassword);
            }
            return(RedirectToAction("ResetPasswordSuccess"));
        }