Skip to content

Commit

Permalink
Merge pull request #268 from shikaiguo/main
Browse files Browse the repository at this point in the history
修改邮件内容的参数
  • Loading branch information
bjdgyc authored Sep 6, 2023
2 parents 28ffda2 + ff54abc commit f03264f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/admin/api_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ type userAccountMailData struct {
LinkAddr string
Group string
Username string
Nickname string
PinCode string
OtpImg string
OtpImgBase64 string
Expand Down Expand Up @@ -251,9 +252,11 @@ func userAccountMail(user *dbdata.User) error {
otpData, _ := userOtpQr(user.Id, true)

data := userAccountMailData{
Issuer: base.Cfg.Issuer,
LinkAddr: setting.LinkAddr,
Group: strings.Join(user.Groups, ","),
Username: user.Username,
Nickname: user.Nickname,
PinCode: user.PinCode,
OtpImg: fmt.Sprintf("https://%s/otp_qr?id=%d&jwt=%s", setting.LinkAddr, user.Id, tokenString),
OtpImgBase64: "data:image/png;base64," + otpData,
Expand Down

0 comments on commit f03264f

Please sign in to comment.