mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
When `getSubject()` returns null (e.g., no Shiro session, expired token, or exception) or when `getPrincipal()` is null, the method returns `new UserDetail()` instead of null. This means callers performing null-check guards (e.g., `if (SecurityUser.getUser() != null)`) will believe an authenticated user exists when none does. Additionally, `getSubject()` silently swallows all exceptions and returns null, masking authentication infrastructure failures. Any downstream code relying on a null return to deny access will be bypassed with a default UserDetail object. Affected files: SecurityUser.java Signed-off-by: kumburovicbranko682-boop <295886834+kumburovicbranko682-boop@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| src | ||
| pom.xml | ||
| README.md | ||
本文档是开发类文档,如需部署小智服务端,点击这里查看部署教程
项目介绍
manager-api 该项目基于SpringBoot框架开发。
开发使用代码编辑器,导入项目时,选择manager-api文件夹作为项目目录
开发环境
JDK 21 Maven 3.8+ MySQL 8.0+ Redis 5.0+ Vue 3.x