重置密码优化
This commit is contained in:
parent
9c97414597
commit
0e4fe65d27
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user