public ActionResult ChangePassword(ChangePasswordModel model)
        {
            // ChangePassword will throw an exception rather
            // than return false in certain failure scenarios.
            bool changePasswordSucceeded = false;

            try
            {
                User currentUser = EvolutionBusinessLogic.Account.UserManager.LoadUserByUsername(model.Username);
                changePasswordSucceeded = Authenticate.ChangePassword(model);
            }
            catch (Exception)
            {
                changePasswordSucceeded = false;
            }

            if (changePasswordSucceeded)
            {
                return(RedirectToAction("ChangePasswordSuccess"));
            }
            else
            {
                model.ChangePasswordResult = "The current password is incorrect or the new password is invalid.";
            }

            // If we got this far, something failed, redisplay form
            return(View(model));
        }