mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-15 16:42:14 +00:00
SEC-1880: Corrected error message when using both logout-success-url and success-handler-ref
This commit is contained in:
parent
863b36962b
commit
7cb472f105
@ -59,7 +59,7 @@ class LogoutBeanDefinitionParser implements BeanDefinitionParser {
|
|||||||
|
|
||||||
if (StringUtils.hasText(successHandlerRef)) {
|
if (StringUtils.hasText(successHandlerRef)) {
|
||||||
if (StringUtils.hasText(logoutSuccessUrl)) {
|
if (StringUtils.hasText(logoutSuccessUrl)) {
|
||||||
pc.getReaderContext().error("Use " + ATT_LOGOUT_URL + " or " + ATT_LOGOUT_HANDLER + ", but not both",
|
pc.getReaderContext().error("Use " + ATT_LOGOUT_SUCCESS_URL + " or " + ATT_LOGOUT_HANDLER + ", but not both",
|
||||||
pc.extractSource(element));
|
pc.extractSource(element));
|
||||||
}
|
}
|
||||||
builder.addConstructorArgReference(successHandlerRef);
|
builder.addConstructorArgReference(successHandlerRef);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user