Merge pull request #14214 from reasonerjt/use-email-from-db-2.2

[CP - v2.2]: Use the Email address from DB instead of request
This commit is contained in:
Daniel Jiang 2021-02-09 15:54:41 +08:00 committed by GitHub
commit 8c635016a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,7 +230,7 @@ func (cc *CommonController) SendResetEmail() {
60, settings.SSL,
settings.Insecure,
settings.From,
[]string{email},
[]string{u.Email},
"Reset Harbor user password",
message.String())
if err != nil {