magic
All checks were successful
deploy / deploy (push) Successful in 1m37s

This commit is contained in:
Untone 2024-02-08 18:05:08 +03:00
parent b20f5986c1
commit 7bc9fca4c4

View File

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