重置密码优化

This commit is contained in:
momo 2023-11-24 10:15:48 +08:00
parent 9c97414597
commit 0e4fe65d27

View File

@ -39,8 +39,8 @@ func (l *UserResetPasswordLogic) UserResetPassword(req *types.RequestUserResetPa
// 返回值必须调用Set重新返回, resp可以空指针调用 resp.SetStatus(basic.CodeOK, data)
// userinfo 传入值时, 一定不为null
if len(req.NewPassword) > 30 {
return resp.SetStatusWithMessage(basic.CodePasswordErr, "password len must < 30")
if len(req.NewPassword) > 64 {
return resp.SetStatusWithMessage(basic.CodePasswordErr, "password len must < 64")
}
rt, err := l.svcCtx.ResetTokenManger.Decrypt(req.ResetToken) // ResetToken