From 7f23adace43546e9d3931dce63910231a1beed2d Mon Sep 17 00:00:00 2001 From: icey-yu <119291641+icey-yu@users.noreply.github.com> Date: Mon, 21 Oct 2024 16:35:54 +0800 Subject: [PATCH] fix: login check (#597) --- 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 e672ccddf1..5c4007d4dd 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