summaryrefslogtreecommitdiffstats
path: root/services/auth/source/smtp/source.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-11-11 05:11:56 +0800
committerGitHub <noreply@github.com>2022-11-10 16:11:56 -0500
commit3aacc9b4accb69cdcd1ec6eac611e0b0819f0b9a (patch)
tree7d4a0e8d479d1fda05a61cf89e977717d656a22a /services/auth/source/smtp/source.go
parent87d05d376dd93fcdf9396a6c57eac4dc0567de1e (diff)
downloadgitea-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 'services/auth/source/smtp/source.go')
-rw-r--r--services/auth/source/smtp/source.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/auth/source/smtp/source.go b/services/auth/source/smtp/source.go
index b2286d42a0..5e69f912da 100644
--- a/services/auth/source/smtp/source.go
+++ b/services/auth/source/smtp/source.go
@@ -19,7 +19,7 @@ import (
// Source holds configuration for the SMTP login source.
type Source struct {
Auth string
- Addr string
+ Host string
Port int
AllowedDomains string `xorm:"TEXT"`
ForceSMTPS bool