mirror of
https://github.com/openziti/zrok.git
synced 2025-06-20 17:58:50 +02:00
accidental hard-coded email sender address, corrected
This commit is contained in:
parent
84af5be304
commit
01b43c6b74
@ -30,7 +30,7 @@ func sendVerificationEmail(emailAddress, token string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
msg := mail.NewMsg()
|
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")
|
return errors.Wrap(err, "failed to set from address in verification email")
|
||||||
}
|
}
|
||||||
if err := msg.To(emailAddress); err != nil {
|
if err := msg.To(emailAddress); err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user