diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2022-11-11 05:11:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 16:11:56 -0500 |
commit | 3aacc9b4accb69cdcd1ec6eac611e0b0819f0b9a (patch) | |
tree | 7d4a0e8d479d1fda05a61cf89e977717d656a22a /routers/web/admin/auths.go | |
parent | 87d05d376dd93fcdf9396a6c57eac4dc0567de1e (diff) | |
download | gitea-3aacc9b4accb69cdcd1ec6eac611e0b0819f0b9a.tar.gz gitea-3aacc9b4accb69cdcd1ec6eac611e0b0819f0b9a.zip |
Revert unrelated changes for SMTP auth (#21767) (#21768)
Backport #21767
The purpose of #18982 is to improve the SMTP mailer, but there were some
unrelated changes made to the SMTP auth in
https://github.com/go-gitea/gitea/pull/18982/commits/d60c43869420f5fc43ad19b454c9ae50dad65964
This PR reverts these unrelated changes, fix #21744
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'routers/web/admin/auths.go')
-rw-r--r-- | routers/web/admin/auths.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/admin/auths.go b/routers/web/admin/auths.go index b79b317555..7ea8a52809 100644 --- a/routers/web/admin/auths.go +++ b/routers/web/admin/auths.go @@ -159,7 +159,7 @@ func parseLDAPConfig(form forms.AuthenticationForm) *ldap.Source { func parseSMTPConfig(form forms.AuthenticationForm) *smtp.Source { return &smtp.Source{ Auth: form.SMTPAuth, - Addr: form.SMTPAddr, + Host: form.SMTPHost, Port: form.SMTPPort, AllowedDomains: form.AllowedDomains, ForceSMTPS: form.ForceSMTPS, |