优化日志输出信息,调整 Docker Compose 配置,新增 Vector 日志收集配置
This commit is contained in:
@@ -98,8 +98,6 @@ func Protect(c *fiber.Ctx, types []PayloadType, permissions []string) (*Context,
|
||||
|
||||
func Locals(c *fiber.Ctx, auth *Context) {
|
||||
c.Locals("auth", auth)
|
||||
c.Locals("authtype", auth.Payload.Type.ToStr())
|
||||
c.Locals("authid", auth.Payload.Id)
|
||||
}
|
||||
|
||||
func authBearer(ctx context.Context, token string) (*Context, error) {
|
||||
|
||||
Reference in New Issue
Block a user