提交 0cca617c 编写于 作者: N Nikita Koksharov

Fixed - Spring Session PRINCIPAL_NAME_INDEX_NAME session attribute has incorrect name

上级 9728f29e
......@@ -136,10 +136,9 @@ public class RedissonSessionRepository implements FindByIndexNameSessionReposito
if (map != null) {
map.fastPut(attributeName, attributeValue);
String principalSessionAttr = getSessionAttrNameKey(PRINCIPAL_NAME_INDEX_NAME);
String securityPrincipalSessionAttr = getSessionAttrNameKey(SPRING_SECURITY_CONTEXT);
if (attributeName.equals(principalSessionAttr)
if (attributeName.equals(PRINCIPAL_NAME_INDEX_NAME)
|| attributeName.equals(securityPrincipalSessionAttr)) {
// remove old
if (principalName != null) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册