Skip to content

Commit c304c08

Browse files
author
Hattinger04
committed
fixing matches
1 parent 09df991 commit c304c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/Hattinger04/configuration/CustomPasswordEncoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public String encode(CharSequence rawPassword) {
2828

2929
@Override
3030
public boolean matches(CharSequence rawPassword, String encodedPassword) {
31-
BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
31+
BCryptPasswordEncoder encoder = new BCryptPasswordEncoder(rounds);
3232
String saltedPassword = pepper + rawPassword + pepper;
3333
return encoder.matches(saltedPassword, encodedPassword);
3434
}

0 commit comments

Comments
 (0)