|
@@ -38,6 +38,7 @@ import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.context.annotation.Lazy;
|
|
import org.springframework.context.annotation.Lazy;
|
|
|
|
+import org.springframework.security.authentication.BadCredentialsException;
|
|
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
|
|
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
|
|
import org.springframework.security.core.authority.SimpleGrantedAuthority;
|
|
import org.springframework.security.core.authority.SimpleGrantedAuthority;
|
|
import org.springframework.security.core.userdetails.UsernameNotFoundException;
|
|
import org.springframework.security.core.userdetails.UsernameNotFoundException;
|
|
@@ -354,7 +355,7 @@ public class AuthServiceImpl implements AuthService {
|
|
memberId = member.getId();
|
|
memberId = member.getId();
|
|
memberVo.setAvatarUrl(avatarService.selectAvatarByMemberId(memberId));
|
|
memberVo.setAvatarUrl(avatarService.selectAvatarByMemberId(memberId));
|
|
}else {
|
|
}else {
|
|
- throw new BackendRuntimeException("账号/密码输入有误");
|
|
|
|
|
|
+ throw new BadCredentialsException("账号/密码输入有误");
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
throw new UsernameNotFoundException(AuthConstant.EXCEPTION_MSG_USER_NOT_FOUND);
|
|
throw new UsernameNotFoundException(AuthConstant.EXCEPTION_MSG_USER_NOT_FOUND);
|