Revert "Fix typo"

This reverts commit 707f8286f8.
This commit is contained in:
Marcus Da Coregio 2022-12-05 14:13:14 -08:00
parent 707f8286f8
commit 7439d5d2de
1 changed files with 6 additions and 6 deletions

View File

@ -141,7 +141,7 @@ PasswordEncoder passwordEncoder() {
PasswordEncoder current = // ... see previous step
PasswordEncoder upgraded = Pbkdf2PasswordEncoder.defaultsForSpringSecurity_v5_8();
DelegatingPasswordEncoder delegating = new DelegatingPasswordEncoder(prefix, Map.of(prefix, upgraded));
delegating.setDefaultPasswordEncoderFormatches(current);
delegating.setDefaultPasswordEncoderForMatches(current);
return delegating;
}
----
@ -155,7 +155,7 @@ fun passwordEncoder(): PasswordEncoder {
PasswordEncoder current = // ... see previous step
PasswordEncoder upgraded = Pbkdf2PasswordEncoder.defaultsForSpringSecurity_v5_8()
DelegatingPasswordEncoder delegating = new DelegatingPasswordEncoder(prefix, Map.of(prefix, upgraded))
delegating.setDefaultPasswordEncoderFormatches(current)
delegating.setDefaultPasswordEncoderForMatches(current)
return delegating
}
----
@ -226,7 +226,7 @@ PasswordEncoder passwordEncoder() {
PasswordEncoder current = // ... see previous step
PasswordEncoder upgraded = SCryptPasswordEncoder.defaultsForSpringSecurity_v5_8();
DelegatingPasswordEncoder delegating = new DelegatingPasswordEncoder(prefix, Map.of(prefix, upgraded));
delegating.setDefaultPasswordEncoderFormatches(current);
delegating.setDefaultPasswordEncoderForMatches(current);
return delegating;
}
----
@ -240,7 +240,7 @@ fun passwordEncoder(): PasswordEncoder {
PasswordEncoder current = // ... see previous step
PasswordEncoder upgraded = SCryptPasswordEncoder.defaultsForSpringSecurity_v5_8()
DelegatingPasswordEncoder delegating = new DelegatingPasswordEncoder(prefix, Map.of(prefix, upgraded))
delegating.setDefaultPasswordEncoderFormatches(current)
delegating.setDefaultPasswordEncoderForMatches(current)
return delegating
}
----
@ -311,7 +311,7 @@ PasswordEncoder passwordEncoder() {
PasswordEncoder current = // ... see previous step
PasswordEncoder upgraded = Argon2PasswordEncoder.defaultsForSpringSecurity_v5_8();
DelegatingPasswordEncoder delegating = new DelegatingPasswordEncoder(prefix, Map.of(prefix, upgraded));
delegating.setDefaultPasswordEncoderFormatches(current);
delegating.setDefaultPasswordEncoderForMatches(current);
return delegating;
}
----
@ -325,7 +325,7 @@ fun passwordEncoder(): PasswordEncoder {
PasswordEncoder current = // ... see previous step
PasswordEncoder upgraded = Argon2PasswordEncoder.defaultsForSpringSecurity_v5_8()
DelegatingPasswordEncoder delegating = new DelegatingPasswordEncoder(prefix, Map.of(prefix, upgraded))
delegating.setDefaultPasswordEncoderFormatches(current)
delegating.setDefaultPasswordEncoderForMatches(current)
return delegating
}
----