diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-05-10 18:49:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-10 10:49:47 +0000 |
commit | 0ca5adee16a9de0fb0bd410aa841eeeda3372e23 (patch) | |
tree | 053c6a189ed45cfff5fc743c4bcc90098779d46d /services/auth/reverseproxy.go | |
parent | 35ab5cdedf0794b4d77d1d02dadb14a4a38ca7c3 (diff) | |
download | gitea-0ca5adee16a9de0fb0bd410aa841eeeda3372e23.tar.gz gitea-0ca5adee16a9de0fb0bd410aa841eeeda3372e23.zip |
Do not send "registration success email" for external auth sources (#24632)
Co-author: @pboguslawski
"registration success email" is only used for notifying a user that "you
have a new account now" when the account is created by admin manually.
When a user uses external auth source, they already knows that they has
the account, so do not send such email.
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'services/auth/reverseproxy.go')
-rw-r--r-- | services/auth/reverseproxy.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/services/auth/reverseproxy.go b/services/auth/reverseproxy.go index 91acff90cc..3574e660b8 100644 --- a/services/auth/reverseproxy.go +++ b/services/auth/reverseproxy.go @@ -13,7 +13,6 @@ import ( "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/util" "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/services/mailer" gouuid "github.com/google/uuid" ) @@ -172,7 +171,5 @@ func (r *ReverseProxy) newUser(req *http.Request) *user_model.User { return nil } - mailer.SendRegisterNotifyMail(user) - return user } |