Skip to content

Commit

Permalink
Fix password not being overwritten in db
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander von Trostorff committed Jan 20, 2019
1 parent acca02d commit 34f1633
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class UserCreatingAuthenticationProvider extends AbstractUserDetailsAuthenticati

private User updatePassword(User user, String password) {
user.setPassword(password);
// TODO:find better fix
user.getPlayer().setPassword(password);
return userRepository.save(user);
}

Expand Down

0 comments on commit 34f1633

Please sign in to comment.