From 0e763b5e2b2a63f42b1419c2d9e6e77a5a519cbf Mon Sep 17 00:00:00 2001 From: MaxKey Date: Sat, 12 Nov 2022 11:25:03 +0800 Subject: [PATCH] bcrypt --- .../org/maxkey/autoconfigure/ApplicationAutoConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maxkey-core/src/main/java/org/maxkey/autoconfigure/ApplicationAutoConfiguration.java b/maxkey-core/src/main/java/org/maxkey/autoconfigure/ApplicationAutoConfiguration.java index d4d3ede21..44272545c 100644 --- a/maxkey-core/src/main/java/org/maxkey/autoconfigure/ApplicationAutoConfiguration.java +++ b/maxkey-core/src/main/java/org/maxkey/autoconfigure/ApplicationAutoConfiguration.java @@ -91,7 +91,7 @@ public class ApplicationAutoConfiguration implements InitializingBean { public PasswordEncoder passwordEncoder( @Value("${maxkey.crypto.password.encoder:bcrypt}") String idForEncode) { Map encoders = new HashMap(); - encoders.put(idForEncode, new BCryptPasswordEncoder()); + encoders.put("bcrypt", new BCryptPasswordEncoder()); encoders.put("plain", NoOpPasswordEncoder.getInstance()); encoders.put("pbkdf2", new Pbkdf2PasswordEncoder()); encoders.put("scrypt", new SCryptPasswordEncoder());