accidental hard-coded email sender address, corrected

This commit is contained in:
Michael Quigley 2022-11-11 10:50:17 -05:00
parent 84af5be304
commit 01b43c6b74
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -30,7 +30,7 @@ func sendVerificationEmail(emailAddress, token string) error {
}
msg := mail.NewMsg()
if err := msg.From("ziggy@zrok.io"); err != nil {
if err := msg.From(cfg.Registration.EmailFrom); err != nil {
return errors.Wrap(err, "failed to set from address in verification email")
}
if err := msg.To(emailAddress); err != nil {