mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-27 01:23:55 +08:00
chore: 因为在OTA激活设备时要求绑定用户信息,如果不把这里的调试功能注释则拿不到用户信息,会数据不完整。
This commit is contained in:
@@ -56,9 +56,9 @@ public class Oauth2Filter extends AuthenticatingFilter {
|
|||||||
String token = getRequestToken((HttpServletRequest) request);
|
String token = getRequestToken((HttpServletRequest) request);
|
||||||
|
|
||||||
// TODO 调试接口,临时取消登录限制,需要 token 参数的除外
|
// TODO 调试接口,临时取消登录限制,需要 token 参数的除外
|
||||||
if (true) {
|
// if (true) {
|
||||||
return true;
|
// return true;
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (StringUtils.isBlank(token)) {
|
if (StringUtils.isBlank(token)) {
|
||||||
logger.warn("onAccessDenied:token is empty");
|
logger.warn("onAccessDenied:token is empty");
|
||||||
|
|||||||
Reference in New Issue
Block a user