mirror of https://github.com/jeecgboot/jeecg-boot
增加bug修复注释
parent
b46a6438e6
commit
06d58f202f
|
@ -118,10 +118,12 @@ public class AppGrantAuthenticationProvider implements AuthenticationProvider {
|
||||||
|
|
||||||
// 通过用户名获取用户信息
|
// 通过用户名获取用户信息
|
||||||
LoginUser loginUser = commonAPI.getUserByName(username);
|
LoginUser loginUser = commonAPI.getUserByName(username);
|
||||||
|
//update-begin---author:eightmonth ---date:2024-04-30 for:【6168】master分支切sas分支登录发生错误-----------
|
||||||
if (Objects.isNull(loginUser) || !StringUtils.hasText(loginUser.getSalt())) {
|
if (Objects.isNull(loginUser) || !StringUtils.hasText(loginUser.getSalt())) {
|
||||||
redisUtil.del(CacheConstant.SYS_USERS_CACHE+"::"+username);
|
redisUtil.del(CacheConstant.SYS_USERS_CACHE+"::"+username);
|
||||||
loginUser = commonAPI.getUserByName(username);
|
loginUser = commonAPI.getUserByName(username);
|
||||||
}
|
}
|
||||||
|
//update-end---author:eightmonth ---date::2024-04-30 for:【6168】master分支切sas分支登录发生错误--------------
|
||||||
// 检查用户可行性
|
// 检查用户可行性
|
||||||
checkUserIsEffective(loginUser);
|
checkUserIsEffective(loginUser);
|
||||||
|
|
||||||
|
|
|
@ -119,10 +119,12 @@ public class PasswordGrantAuthenticationProvider implements AuthenticationProvid
|
||||||
|
|
||||||
// 通过用户名获取用户信息
|
// 通过用户名获取用户信息
|
||||||
LoginUser loginUser = commonAPI.getUserByName(username);
|
LoginUser loginUser = commonAPI.getUserByName(username);
|
||||||
|
//update-begin---author:eightmonth ---date:2024-04-30 for:【6168】master分支切sas分支登录发生错误-----------
|
||||||
if (Objects.isNull(loginUser) || !StringUtils.hasText(loginUser.getSalt())) {
|
if (Objects.isNull(loginUser) || !StringUtils.hasText(loginUser.getSalt())) {
|
||||||
redisUtil.del(CacheConstant.SYS_USERS_CACHE+"::"+username);
|
redisUtil.del(CacheConstant.SYS_USERS_CACHE+"::"+username);
|
||||||
loginUser = commonAPI.getUserByName(username);
|
loginUser = commonAPI.getUserByName(username);
|
||||||
}
|
}
|
||||||
|
//update-end---author:eightmonth ---date::2024-04-30 for:【6168】master分支切sas分支登录发生错误--------------
|
||||||
// 检查用户可行性
|
// 检查用户可行性
|
||||||
checkUserIsEffective(loginUser);
|
checkUserIsEffective(loginUser);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue