diff --git a/server/auth/internal/logic/userresetpasswordlogic.go b/server/auth/internal/logic/userresetpasswordlogic.go index 1560d55d..bba0a1fb 100644 --- a/server/auth/internal/logic/userresetpasswordlogic.go +++ b/server/auth/internal/logic/userresetpasswordlogic.go @@ -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