|
@@ -128,6 +128,9 @@ public class BladeUserDetailsServiceImpl implements UserDetailsService {
|
|
|
assert result != null;
|
|
|
if (result.isSuccess()) {
|
|
|
UserInfo userInfo = result.getData();
|
|
|
+ if (userInfo == null){
|
|
|
+ throw new UsernameNotFoundException(TokenUtil.USER_NOT_FOUND);
|
|
|
+ }
|
|
|
User user = userInfo.getUser();
|
|
|
// 用户不存在,但提示用户名与密码错误并锁定账号
|
|
|
if (user == null || user.getId() == null) {
|