mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
chore: 因为在OTA激活设备时要求绑定用户信息,如果不把这里的调试功能注释则拿不到用户信息,会数据不完整。
This commit is contained in:
parent
70b6efe922
commit
a19ba6d48b
1 changed files with 3 additions and 3 deletions
|
|
@ -56,9 +56,9 @@ public class Oauth2Filter extends AuthenticatingFilter {
|
|||
String token = getRequestToken((HttpServletRequest) request);
|
||||
|
||||
// TODO 调试接口,临时取消登录限制,需要 token 参数的除外
|
||||
if (true) {
|
||||
return true;
|
||||
}
|
||||
// if (true) {
|
||||
// return true;
|
||||
// }
|
||||
|
||||
if (StringUtils.isBlank(token)) {
|
||||
logger.warn("onAccessDenied:token is empty");
|
||||
|
|
|
|||
Loading…
Reference in a new issue