密码修改清理缓存时,由用户名清理缓存修改为登录ID来清理用户缓存。

This commit is contained in:
段冬梅
2019-02-21 09:42:30 +08:00
parent a2f311f18c
commit 60392b2493

View File

@@ -121,7 +121,7 @@ public class UserController extends BaseController{
for (AuthenticationInfo auth : cache.values()) {
userRealm.getAuthenticationCache().remove(auth.getPrincipals().getPrimaryPrincipal());
}
systemService.deleteAuthenticationCache(keyPrefix + user.getName());
systemService.deleteAuthenticationCache(keyPrefix + user.getLoginId());
systemService.deleteAuthenticationCache(keyPrefix + user.getId());
}
}
@@ -331,7 +331,7 @@ public class UserController extends BaseController{
for (AuthenticationInfo auth : cache.values()) {
userRealm.getAuthenticationCache().remove(auth.getPrincipals().getPrimaryPrincipal());
}
systemService.deleteAuthenticationCache(keyPrefix + user.getName());
systemService.deleteAuthenticationCache(keyPrefix + user.getLoginId());
systemService.deleteAuthenticationCache(keyPrefix + user.getId());
}