Use the Email address from DB instead of request

This commit updates the controller for sending reset pwd Email,
to make it use the Email from DB query result.

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
This commit is contained in:
Daniel Jiang 2021-02-09 12:59:52 +08:00
parent 1de9a37ddf
commit 6f7fc44770

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 {