mirror of https://gitee.com/maxjhandsome/pig
parent
a060f8d7b8
commit
b85bc1bd2f
|
@ -73,7 +73,9 @@ public class PigUserDetailsServiceImpl implements UserDetailsService {
|
|||
|
||||
R<UserInfo> result = remoteUserService.info(username, SecurityConstants.FROM_IN);
|
||||
UserDetails userDetails = getUserDetails(result);
|
||||
cache.put(username, userDetails);
|
||||
if (cache != null) {
|
||||
cache.put(username, userDetails);
|
||||
}
|
||||
return userDetails;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue