mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-27 14:22:47 +00:00
Added check for multiple RememberMeServices beans.
This commit is contained in:
parent
debfbe47cf
commit
a38ed3cfde
@ -75,6 +75,8 @@ public class HttpSecurityConfigPostProcessor implements BeanFactoryPostProcessor
|
||||
|
||||
if (beans.size() > 0) {
|
||||
rememberMeServices = (RememberMeServices) beans.values().toArray()[0];
|
||||
} else {
|
||||
throw new SecurityConfigurationException("More than one RememberMeServices bean found.");
|
||||
}
|
||||
|
||||
// Address AbstractProcessingFilter instances
|
||||
|
Loading…
x
Reference in New Issue
Block a user