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

(cherry picked from commit 60392b2493)
This commit is contained in:
段冬梅
2019-02-21 01:42:30 +00:00
committed by 董晓燕
parent 69f993f40f
commit 0e49a1d0ac

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());
}