diff --git a/api/owner_reset_hex.go b/api/owner_reset_hex.go index c2bf339..ebe4add 100644 --- a/api/owner_reset_hex.go +++ b/api/owner_reset_hex.go @@ -10,6 +10,10 @@ func ownerSendResetHex(email string) error { return errorMissingField } + if !smtpConfigured { + return errorSmtpNotConfigured + } + o, err := ownerGetByEmail(email) if err != nil { if err == errorNoSuchEmail { @@ -22,10 +26,6 @@ func ownerSendResetHex(email string) error { } } - if !smtpConfigured { - return errorSmtpNotConfigured - } - resetHex, err := randomHex(32) if err != nil { return err