add subject for rdb rst-code/login-code mail (#628)
This commit is contained in:
parent
22ee99f222
commit
30b469ddbd
|
@ -126,6 +126,8 @@ var (
|
|||
"no privilege": "privilege 未设置",
|
||||
"node is nil": "node 未设置",
|
||||
"operation is blank": "operation 未设置",
|
||||
"Reset Password": "重置密码",
|
||||
"Login Code": "登录验证码",
|
||||
},
|
||||
}
|
||||
)
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue