mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-24 03:03:44 +00:00
Make error message when multiple UserDetailsServices are found more explicit.
This commit is contained in:
parent
0d7002e322
commit
f5d2e7a7ce
@ -109,7 +109,7 @@ public class UserDetailsServiceInjectionBeanPostProcessor implements BeanPostPro
|
|||||||
|
|
||||||
} else if (beans.size() > 1) {
|
} else if (beans.size() > 1) {
|
||||||
throw new SecurityConfigurationException("More than one UserDetailsService registered. Please " +
|
throw new SecurityConfigurationException("More than one UserDetailsService registered. Please " +
|
||||||
"use a specific Id in your configuration");
|
"use a specific Id reference in <remember-me/> <openid-login/> or <x509 /> elements.");
|
||||||
}
|
}
|
||||||
|
|
||||||
return (UserDetailsService) beans.values().toArray()[0];
|
return (UserDetailsService) beans.values().toArray()[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user