diff --git a/controllers/auth.go b/controllers/auth.go index 1c38f73..1334ca8 100644 --- a/controllers/auth.go +++ b/controllers/auth.go @@ -191,7 +191,8 @@ func (c *AuthController) Register() { } ucmExists, err := models.GetUserCompanyMapByEmail(o, email) - if err != nil || ucmExists != nil { + if ucmExists != nil { + fmt.Println(ucmExists) c.ServeJSONError("Error: Email exists!") return }