Skip to content

Commit

Permalink
打包客户端
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronchen2k committed Jun 2, 2024
1 parent bb4f300 commit 0d809c6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions internal/server/modules/service/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@ func (s *AccountService) Register(tenantId consts.TenantId, req v1.RegisterReq)

if strings.ToLower(config.CONFIG.System.Name) == "deeptest" {
mp := map[string]string{
"name": user.Name,
"sys": config.CONFIG.System.Name,
"url": config.CONFIG.System.Website,
"name": user.Name,
"sys": config.CONFIG.System.Name,
"url": config.CONFIG.System.Website,
"toEmail": user.Email,
}
_mailUtils.Send(user.Email, _i118Utils.Sprintf("register_success"), "register-success", mp)
}
Expand All @@ -133,9 +134,10 @@ func (s *AccountService) ForgotPassword(tenantId consts.TenantId, usernameOrPass
url = consts.WebsiteDev
}
settings := map[string]string{
"name": user.Username,
"url": url,
"vcode": vcode,
"name": user.Username,
"url": url,
"vcode": vcode,
"toEmail": user.Email,
}
_mailUtils.Send(user.Email, _i118Utils.Sprintf("reset_password"), "reset-password", settings)

Expand Down

0 comments on commit 0d809c6

Please sign in to comment.