Skip to content

Commit

Permalink
Disabled registration notification e-mail in reverse proxy mode
Browse files Browse the repository at this point in the history
Disabled registration notification e-mail in reverse proxy mode to avoid
spamming with invalid instructions (such accounts are created by admin
in exteral systems not during self registration and no gitea passwords
are used for auth).

Related: go-gitea#18601
Author-Change-Id: IB#1122610
  • Loading branch information
pboguslawski committed Oct 5, 2022
1 parent 870d7f9 commit 7b9435e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions services/auth/reverseproxy.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
// Copyright 2022 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

Expand Down Expand Up @@ -120,7 +120,5 @@ func (r *ReverseProxy) newUser(req *http.Request) *user_model.User {
return nil
}

mailer.SendRegisterNotifyMail(user)

return user
}

0 comments on commit 7b9435e

Please sign in to comment.