fix: 统一重置密码验证码的 scene 常量
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
|
||||
"juwan-backend/app/email/api/internal/svc"
|
||||
"juwan-backend/app/email/api/internal/types"
|
||||
"juwan-backend/common/redisx"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
@@ -30,6 +31,6 @@ func NewForgotPasswordLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Fo
|
||||
func (l *ForgotPasswordLogic) ForgotPassword(req *types.ForgotPasswordReq) (resp *types.SendVerificationCodeResp, err error) {
|
||||
return NewSendVerificationCodeLogic(l.ctx, l.svcCtx).SendVerificationCode(&types.SendVerificationCodeReq{
|
||||
Email: req.Email,
|
||||
Scene: "reset_password",
|
||||
Scene: redisx.SCENE_RESET_PWD,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user