Skip to content

Commit

Permalink
faucet: enable one way to skip captcha verification
Browse files Browse the repository at this point in the history
  • Loading branch information
Keefe Liu committed Jan 8, 2025
1 parent 849d89d commit 155343c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/faucet/faucet.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ func (f *faucet) apiHandler(w http.ResponseWriter, r *http.Request) {
log.Info("Faucet funds requested", "url", msg.URL, "tier", msg.Tier, "ip", ip)

// check #1: captcha verifications to exclude robot
if *captchaToken != "" {
if *captchaToken != "" && msg.Captcha != "noCaptchaToken" {
form := url.Values{}
form.Add("secret", *captchaSecret)
form.Add("response", msg.Captcha)
Expand Down

0 comments on commit 155343c

Please sign in to comment.