From da4110ae8ee07591d96ecb31e35e2991bd965015 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Tue, 29 Aug 2023 10:21:50 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/auth/internal/logic/email_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/auth/internal/logic/email_manager.go b/server/auth/internal/logic/email_manager.go index 05a74cdc..b54883ca 100644 --- a/server/auth/internal/logic/email_manager.go +++ b/server/auth/internal/logic/email_manager.go @@ -118,7 +118,7 @@ func init() { Auth: smtp.PlainAuth( "", "support@fusenpack.com", - "Fusenpack2021", + "wfbjpdgvaozjvwah", "smtp.gmail.com", ), FromEmail: "support@fusenpack.com", From 59161ddab50cec86afa6ae33bddb137f6d0502c3 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Tue, 29 Aug 2023 10:30:07 +0800 Subject: [PATCH 2/2] fix --- server/auth/internal/svc/servicecontext.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/auth/internal/svc/servicecontext.go b/server/auth/internal/svc/servicecontext.go index 7c6227c8..be6eaa42 100644 --- a/server/auth/internal/svc/servicecontext.go +++ b/server/auth/internal/svc/servicecontext.go @@ -29,14 +29,14 @@ type ServiceContext struct { func NewServiceContext(c config.Config) *ServiceContext { conn := initalize.InitMysql(c.SourceMysql) // StateServer := shared.StartNode(c.ReplicaId, autoconfig.AutoGetAllServerConfig(), conn) - + registerAddress := fmt.Sprintf("http://%s/api/auth/oauth2/register", c.MainAddress) return &ServiceContext{ Config: c, MysqlConn: conn, SharedState: nil, AllModels: gmodel.NewAllModels(initalize.InitMysql(c.SourceMysql)), - RegisterTokenManger: auth.NewConfirmationLink[auth.RegisterToken](c.Auth.AccessSecret, "http://localhost:9900/api/auth/oauth2/register"), - ResetTokenManger: auth.NewConfirmationLink[auth.ResetToken](c.Auth.AccessSecret, "http://localhost:9900/api/auth/oauth2/register"), + RegisterTokenManger: auth.NewConfirmationLink[auth.RegisterToken](c.Auth.AccessSecret, registerAddress), + ResetTokenManger: auth.NewConfirmationLink[auth.ResetToken](c.Auth.AccessSecret, registerAddress), } }