add subject for rdb rst-code/login-code mail (#628)

This commit is contained in:
yubo 2021-03-22 17:27:01 +08:00 committed by GitHub
parent 22ee99f222
commit 30b469ddbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -126,6 +126,8 @@ var (
"no privilege": "privilege 未设置",
"node is nil": "node 未设置",
"operation is blank": "operation 未设置",
"Reset Password": "重置密码",
"Login Code": "登录验证码",
},
}
)

View File

@ -378,7 +378,7 @@ func sendLoginCode(c *gin.Context) {
return "", err
}
if err := redisc.Write(&dataobj.Message{Tos: []string{in.Arg}, Content: buf.String()}, queueName); err != nil {
if err := redisc.Write(&dataobj.Message{Tos: []string{in.Arg}, Subject: _s("Login Code"), Content: buf.String()}, queueName); err != nil {
return "", err
}
@ -450,7 +450,7 @@ func sendRstCode(c *gin.Context) {
return "", err
}
if err := redisc.Write(&dataobj.Message{Tos: []string{in.Arg}, Content: buf.String()}, queueName); err != nil {
if err := redisc.Write(&dataobj.Message{Tos: []string{in.Arg}, Subject: _s("Reset Password"), Content: buf.String()}, queueName); err != nil {
return "", err
}