public SettingsVm() { this.Profile = new EditProfileVm(); PasswordChange = new ChangePasswordVM(); IssueSettings = new DefaultIssueSettings(); NotificationSettings = new UserEmailNotificationSettingsVM(); }
public ActionResult Password(ChangePasswordVM model) { if (ModelState.IsValid) { userAccountManager.UpdatePassword(model); var msg = new AlertMessageStore(); msg.AddMessage("success", "Password updated successfully"); TempData["AlertMessages"] = msg; } //TO DO : Redirect to the Tab ? return RedirectToAction("Index"); }
public void UpdatePassword(ChangePasswordVM model) { accountRepository.UpdatePassword(model.Password, userSessionHelper.UserId); }