Skip to content

Commit 7b9435e

Browse files
committed
Disabled registration notification e-mail in reverse proxy mode
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
1 parent 870d7f9 commit 7b9435e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

services/auth/reverseproxy.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright 2014 The Gogs Authors. All rights reserved.
2-
// Copyright 2019 The Gitea Authors. All rights reserved.
2+
// Copyright 2022 The Gitea Authors. All rights reserved.
33
// Use of this source code is governed by a MIT-style
44
// license that can be found in the LICENSE file.
55

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

123-
mailer.SendRegisterNotifyMail(user)
124-
125123
return user
126124
}

0 commit comments

Comments
 (0)