email exists final fix

This commit is contained in:
Lukas Bachschwell 2018-11-14 19:11:18 +01:00
parent 971f0e47a0
commit 1b41ad660a
1 changed files with 2 additions and 1 deletions

View File

@ -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
}