is-registered-fix
This commit is contained in:
parent
853f8c44bb
commit
83bb18ae79
|
@ -32,11 +32,11 @@ func IsRegisteredResolver(ctx context.Context, email string) (*model.AuthRespons
|
||||||
if existingUser.EmailVerifiedAt != nil {
|
if existingUser.EmailVerifiedAt != nil {
|
||||||
res.Message = "verified"
|
res.Message = "verified"
|
||||||
log.Debug("Email is already verified and signed up.")
|
log.Debug("Email is already verified and signed up.")
|
||||||
return res, fmt.Errorf(`%s has already signed up`, email)
|
return res, nil // fmt.Errorf(`%s has already signed up`, email)
|
||||||
} else if existingUser.ID != "" && existingUser.EmailVerifiedAt == nil {
|
} else if existingUser.ID != "" && existingUser.EmailVerifiedAt == nil {
|
||||||
res.Message = "not verified"
|
res.Message = "not verified"
|
||||||
log.Debug("Email is already signed up. Verification pending...")
|
log.Debug("Email is already signed up. Verification pending...")
|
||||||
return res, fmt.Errorf("%s has already signed up. please complete the email verification process or reset the password", email)
|
return res, nil // Errorf("%s has already signed up. please complete the email verification process or reset the password", email)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user