From dfcdec636172284e35d0c47bb80c1186cd8112c7 Mon Sep 17 00:00:00 2001 From: icey-yu <1186114839@qq.com> Date: Mon, 21 Oct 2024 16:08:49 +0800 Subject: [PATCH] fix: login check --- internal/rpc/chat/login.go | 3 --- 1 file changed, 3 deletions(-) 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