diff --git a/internal/rpc/chat/login.go b/internal/rpc/chat/login.go index e672ccdd..5c4007d4 100644 --- a/internal/rpc/chat/login.go +++ b/internal/rpc/chat/login.go @@ -374,9 +374,6 @@ func (o *chatSvr) Login(ctx context.Context, req *chat.LoginReq) (*chat.LoginRes if req.Password == "" && req.VerifyCode == "" { return nil, errs.ErrArgs.WrapMsg("password or code must be set") } - if req.Password == "" { - return nil, errs.ErrArgs.WrapMsg("password must be set") - } var ( err error credential *chatdb.Credential