From fc8ef469b7492d3f420de4cd3e5d985108b9b39e Mon Sep 17 00:00:00 2001 From: Marcin Lewandowski Date: Thu, 24 Jul 2025 18:43:20 +0200 Subject: [PATCH] Update index.adoc Signed-off-by: Marcin Lewandowski --- .../ROOT/pages/servlet/authentication/passwords/index.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/modules/ROOT/pages/servlet/authentication/passwords/index.adoc b/docs/modules/ROOT/pages/servlet/authentication/passwords/index.adoc index 7c0d7c2a76b..1ad95817fbe 100644 --- a/docs/modules/ROOT/pages/servlet/authentication/passwords/index.adoc +++ b/docs/modules/ROOT/pages/servlet/authentication/passwords/index.adoc @@ -34,6 +34,8 @@ public class SecurityConfig { @Bean public UserDetailsService userDetailsService() { + // User.withDefaultPasswordEncoder() is considered unsafe for production + // and is only intended for sample applications. UserDetails userDetails = User.withDefaultPasswordEncoder() .username("user") .password("password")