Skip to content

Commit

Permalink
Fix for null ref error when you change your password. Fixes #19.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffputz committed Mar 5, 2015
1 parent cc2e3e6 commit cdea24c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PopForums/Controllers/AccountController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ public ViewResult ChangePassword(UserEditSecurity userEdit)
{
_userService.SetPassword(user, userEdit.NewPassword, HttpContext.Request.UserHostAddress, user);
ViewBag.PasswordResult = Resources.NewPasswordSaved;
}
return View("Security");
}
return View("Security", new UserEditSecurity { NewEmail = String.Empty, NewEmailRetype = String.Empty, IsNewUserApproved = _settingsManager.Current.IsNewUserApproved });
}

[HttpPost]
Expand Down

0 comments on commit cdea24c

Please sign in to comment.