Remove double salt in Pbkdf2PasswordEncoder
Issue gh-3930
This commit is contained in:
parent
77a478ba0d
commit
5f658b3ffc
|
@ -101,7 +101,7 @@ public class Pbkdf2PasswordEncoder implements PasswordEncoder {
|
|||
}
|
||||
|
||||
private byte[] encodeAndConcatenate(CharSequence rawPassword, byte[] salt) {
|
||||
return concatenate(salt, encode(rawPassword, salt));
|
||||
return encode(rawPassword, salt);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -130,4 +130,4 @@ public class Pbkdf2PasswordEncoder implements PasswordEncoder {
|
|||
throw new IllegalStateException("Could not create hash", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue