Skip to content

Commit 40f2a5d

Browse files
committed
one more codepath
1 parent 3916dcd commit 40f2a5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/api/external.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,9 @@ func (a *API) createAccountFromExternalIdentity(tx *storage.Connection, r *http.
416416
return nil, terr
417417
}
418418
emailConfirmationSent = true
419+
} else {
420+
// empty email address is regarded as not verified
421+
return nil, apierrors.NewUnprocessableEntityError(apierrors.ErrorCodeEmailNotConfirmed, "No email address provided by %v. Please add a verified email address to your account at %v and try again.", providerType, providerType)
419422
}
420423

421424
if !config.Mailer.AllowUnverifiedEmailSignIns {

0 commit comments

Comments
 (0)