fix: issues with default player

This commit is contained in:
Rogee
2024-12-28 15:17:19 +08:00
parent 464937cf84
commit dae2941168
4 changed files with 41 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ import (
"os"
"path/filepath"
"strings"
"time"
"backend/modules/users"
"backend/pkg/pg"
@@ -78,6 +79,7 @@ func (c *Controller) Render(ctx fiber.Ctx) error {
ctx.Cookie(&fiber.Cookie{
Name: "token",
Value: jwtToken,
Expires: time.Now().Add(6 * time.Hour),
HTTPOnly: true,
})