예제 #1
0
        public ActionResult ChangePassword(PasswordChange model)
        {
            var User = GetPlayer().User;
            model.databasePassword = User.Password;

            if (ModelState.IsValid)
            {
                //update the users password
                User.Updated = SystemDate.Current();
                User.Password = model.newPassword.ToLower();

                return Redirect("/Player");
            }
            else
            {
                return View(model);
            }
        }
예제 #2
0
 public ActionResult ChangePassword()
 {
     var model = new PasswordChange();
     return View(model);
 }