From 1b41ad660aefcdff34deacf2db1b45b34bc7d782 Mon Sep 17 00:00:00 2001 From: Lukas Bachschwell Date: Wed, 14 Nov 2018 19:11:18 +0100 Subject: [PATCH] email exists final fix --- controllers/auth.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }