Example #1
0
        public ActionResult ResetPassword(string email)
        {
            TestDatabaseEntities context = new TestDatabaseEntities();


            if (email != null)
            {
                string resetCode = Guid.NewGuid().ToString();
                context.AddPasswordResetCode(email, resetCode);
                SendResetCodeEmail(email, resetCode);
                ViewBag.Message = "Password reset email sent to " + email;
            }

            return(View());
        }