Update user.go
This commit is contained in:
parent
2d2ede9a7e
commit
1c1b55f22c
@ -76,7 +76,7 @@ func (c *Controller) GetCurrentAccount(ctx *fiber.Ctx) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Controller) ConnectAccount(ctx *fiber.Ctx) error {
|
func (c *Controller) ConnectAccount(ctx *fiber.Ctx) error {
|
||||||
authHeader := c.Get("Authorization")
|
authHeader := ctx.Get("Authorization")
|
||||||
if authHeader == "" {
|
if authHeader == "" {
|
||||||
ctx.Status(fiber.StatusUnauthorized).SendString("no JWT found")
|
ctx.Status(fiber.StatusUnauthorized).SendString("no JWT found")
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user