File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
crypto/src/main/java/org/springframework/security/crypto/password Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 1919import java .util .HashMap ;
2020import java .util .Map ;
2121
22- import org .springframework .util .StringUtils ;
23-
2422/**
2523 * A password encoder that delegates to another PasswordEncoder based upon a prefixed
2624 * identifier.
@@ -292,7 +290,7 @@ public String encode(CharSequence rawPassword) {
292290 @ Override
293291 public boolean matches (CharSequence rawPassword , String prefixEncodedPassword ) {
294292 String id = extractId (prefixEncodedPassword );
295- if (StringUtils . hasText ( id )) {
293+ if (id != null && ! id . isEmpty ( )) {
296294 throw new IllegalArgumentException (String .format (NO_PASSWORD_ENCODER_MAPPED , id ));
297295 }
298296 throw new IllegalArgumentException (NO_PASSWORD_ENCODER_PREFIX );
You can’t perform that action at this time.
0 commit comments