Skip to content

Commit

Permalink
[fix][auth]Fix user registration and resetPassword issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryjzhang committed Feb 13, 2025
1 parent 06b2502 commit b7cf2ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public void resetPassword(String userName, String password, String newPassword)
.orElseThrow(() -> new RuntimeException("User does not exist, please register"));

try {
//validateOldPassword(userDO, password);
validateOldPassword(userDO, password);
updatePassword(userDO, newPassword, userRepository);
} catch (PasswordEncryptionException e) {
throw new RuntimeException("Password encryption error, please try again", e);
Expand Down

0 comments on commit b7cf2ca

Please sign in to comment.