From 6f7fc44770dc7fc17900600c50bfa049761f5e22 Mon Sep 17 00:00:00 2001 From: Daniel Jiang Date: Tue, 9 Feb 2021 12:59:52 +0800 Subject: [PATCH] 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 --- src/core/controllers/base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/controllers/base.go b/src/core/controllers/base.go index 167387399..2dbef147a 100644 --- a/src/core/controllers/base.go +++ b/src/core/controllers/base.go @@ -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 {