diff --git a/controllers/authController.go b/controllers/authController.go index ff0ec38..62d0453 100644 --- a/controllers/authController.go +++ b/controllers/authController.go @@ -18,8 +18,6 @@ import ( // Login - Login. Returns a JWT token on the response body func Login(c *fiber.Ctx) error { - log.Printf("Login endpoint started\n") - var data map[string]string if err := c.BodyParser(&data); err != nil { @@ -108,7 +106,7 @@ func AddUser(c *fiber.Ctx) error { database.DB.Where("channel = ?", strings.ToLower(data["channel"])).First(&user) - if user.Id == 0 { + if user.Id != 0 { return c.JSON(fiber.Map{ "message": "Canal já em uso"}) }