Update user.go

This commit is contained in:
Mikhail 2024-05-26 23:12:16 +00:00
parent 2d2ede9a7e
commit 1c1b55f22c

@ -76,7 +76,7 @@ func (c *Controller) GetCurrentAccount(ctx *fiber.Ctx) error {
}
func (c *Controller) ConnectAccount(ctx *fiber.Ctx) error {
authHeader := c.Get("Authorization")
authHeader := ctx.Get("Authorization")
if authHeader == "" {
ctx.Status(fiber.StatusUnauthorized).SendString("no JWT found")
return nil