Skip to content

Commit

Permalink
fix: login check
Browse files Browse the repository at this point in the history
  • Loading branch information
icey-yu committed Oct 21, 2024
1 parent 40fe993 commit dfcdec6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/rpc/chat/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dfcdec6

Please sign in to comment.