Esempio n. 1
0
 public ActionResult ChangePassword(LocalPasswordModel password)
 {
     var user = _userService.GetById(SessionDataHelper.UserId);
     var salt = "";
     var hashedPassword = SecurityHelper.HashPassword(password.NewPassword, ref salt);
     user.PassWord = hashedPassword;
     user.PasswordSalt = salt;
     _userService.Update(user);
     return RedirectToAction("ManageAccount", "Account");
 }
Esempio n. 2
0
 public ActionResult ChangePassword()
 {
     var model = new LocalPasswordModel();
     return View(model);
 }