コード例 #1
0
 public ActionResult ChangeUserPassword(long userId, ChangePasswordModel model)
 {
     ServiceLocator.AccountManagementService.ChangeUserPassword(userId, model.NewPassword);
     return RedirectToAction("ViewAllUserAccounts", "AdministratorPanel");
 }
コード例 #2
0
 public ActionResult ChangePassword(ChangePasswordModel model)
 {
     ServiceLocator.AccountManagementService.ChangePassword((long)Session["LoggedUserId"], model.OldPassword, model.NewPassword);
     return RedirectToAction("Index", "UserAccountPanel");
 }