Skip to content

Commit

Permalink
remove: duplicate challenge check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad committed Jun 12, 2023
1 parent b44c35a commit 1fd7504
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions captcha.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ func (c *Captcha) UnaryServerInterceptor() grpc.UnaryServerInterceptor {
return nil, err
}

if !cp.CheckChallenge {
return handler(ctx, req)
}

if cp.CheckChallenge {
switch cp.Provider {
case captcha.Provider_GOOGLE:
Expand Down Expand Up @@ -104,10 +100,6 @@ func (c *Captcha) StreamServerInterceptor() grpc.StreamServerInterceptor {
return err
}

if !cp.CheckChallenge {
return handler(srv, stream)
}

if cp.CheckChallenge {
switch cp.Provider {
case captcha.Provider_GOOGLE:
Expand Down

0 comments on commit 1fd7504

Please sign in to comment.