Browse Source

Fixed user account not saving correctly.

master
Teknikode 6 years ago
parent
commit
6f208f4d25
  1. 3
      Teknik/Areas/User/Controllers/UserController.cs

3
Teknik/Areas/User/Controllers/UserController.cs

@ -625,7 +625,8 @@ namespace Teknik.Areas.Users.Controllers @@ -625,7 +625,8 @@ namespace Teknik.Areas.Users.Controllers
return Json(new { error = "Passwords must match" });
}
UserHelper.EditAccount(db, Config, user, true, password);
User newUser = UserHelper.GetUser(db, user.Username);
UserHelper.EditAccount(db, Config, newUser, true, password);
return Json(new { result = true });
}

Loading…
Cancel
Save