This commit is contained in:
parent
b20f5986c1
commit
7bc9fca4c4
|
@ -33,6 +33,7 @@ func IsRegisteredResolver(ctx context.Context, email string) (*model.Response, e
|
||||||
} else {
|
} else {
|
||||||
log.Debug("Found user by email: ", existingUser)
|
log.Debug("Found user by email: ", existingUser)
|
||||||
if existingUser != nil {
|
if existingUser != nil {
|
||||||
|
if strings.Contains(existingUser.SignupMethods, "magic") {
|
||||||
res.Message = "registered"
|
res.Message = "registered"
|
||||||
if existingUser.EmailVerifiedAt != nil {
|
if existingUser.EmailVerifiedAt != nil {
|
||||||
res.Message = "verified"
|
res.Message = "verified"
|
||||||
|
@ -45,6 +46,7 @@ func IsRegisteredResolver(ctx context.Context, email string) (*model.Response, e
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user