From ff54abc5d5e1f351f66ea9c10ca1d859aba78c2c Mon Sep 17 00:00:00 2001 From: K Date: Fri, 1 Sep 2023 22:49:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=82=AE=E4=BB=B6=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E7=9A=84=E6=98=B5=E7=A7=B0=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/admin/api_user.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/admin/api_user.go b/server/admin/api_user.go index b93ea5d7..d2e5b027 100644 --- a/server/admin/api_user.go +++ b/server/admin/api_user.go @@ -205,6 +205,7 @@ type userAccountMailData struct { LinkAddr string Group string Username string + Nickname string PinCode string OtpImg string OtpImgBase64 string @@ -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,