密码修改清理缓存时,由用户名清理缓存修改为登录ID来清理用户缓存。
(cherry picked from commit 60392b2493)
This commit is contained in:
@@ -121,7 +121,7 @@ public class UserController extends BaseController{
|
|||||||
for (AuthenticationInfo auth : cache.values()) {
|
for (AuthenticationInfo auth : cache.values()) {
|
||||||
userRealm.getAuthenticationCache().remove(auth.getPrincipals().getPrimaryPrincipal());
|
userRealm.getAuthenticationCache().remove(auth.getPrincipals().getPrimaryPrincipal());
|
||||||
}
|
}
|
||||||
systemService.deleteAuthenticationCache(keyPrefix + user.getName());
|
systemService.deleteAuthenticationCache(keyPrefix + user.getLoginId());
|
||||||
systemService.deleteAuthenticationCache(keyPrefix + user.getId());
|
systemService.deleteAuthenticationCache(keyPrefix + user.getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -331,7 +331,7 @@ public class UserController extends BaseController{
|
|||||||
for (AuthenticationInfo auth : cache.values()) {
|
for (AuthenticationInfo auth : cache.values()) {
|
||||||
userRealm.getAuthenticationCache().remove(auth.getPrincipals().getPrimaryPrincipal());
|
userRealm.getAuthenticationCache().remove(auth.getPrincipals().getPrimaryPrincipal());
|
||||||
}
|
}
|
||||||
systemService.deleteAuthenticationCache(keyPrefix + user.getName());
|
systemService.deleteAuthenticationCache(keyPrefix + user.getLoginId());
|
||||||
systemService.deleteAuthenticationCache(keyPrefix + user.getId());
|
systemService.deleteAuthenticationCache(keyPrefix + user.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user