Closed gopkg-dev closed 4 months ago
修复在 config.C.Middleware.Auth.Disable 为 true 时只设置了用户 ID 没有设置上下文导致接口提示用户不存在的 bug。
复现流程设置 config.C.Middleware.Auth.Disable = true 重新登陆 root 账号 访问 /api/v1/current/user
修复在 config.C.Middleware.Auth.Disable 为 true 时只设置了用户 ID 没有设置上下文导致接口提示用户不存在的 bug。
复现流程设置 config.C.Middleware.Auth.Disable = true 重新登陆 root 账号 访问 /api/v1/current/user