修改密码
This commit is contained in:
parent
311a9724cf
commit
ceda53a5ae
@ -142,4 +142,15 @@ public class UserCacheManager {
|
||||
redisUtils.set(LoginProperties.aCacheKey + username, employeeDto, time);
|
||||
}
|
||||
}
|
||||
|
||||
@Async
|
||||
public void cleanCustomerCache(String username) {
|
||||
// 转小写
|
||||
username = StringUtils.lowerCase(username);
|
||||
if (StringUtils.isNotEmpty(username)) {
|
||||
// 清除数据
|
||||
redisUtils.del(LoginProperties.bCacheKey + username);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -61,7 +61,7 @@ public class CnCustomerServiceImpl extends ServiceImpl<CnCustomerMapper, CnCusto
|
||||
@Override
|
||||
public void updatePass(String username, String encryptPassword) {
|
||||
this.baseMapper.updatePass(username, encryptPassword);
|
||||
userCacheManager.cleanEmployeesCache(username);
|
||||
userCacheManager.cleanCustomerCache(username);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user