email exists final fix
This commit is contained in:
parent
971f0e47a0
commit
1b41ad660a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user