flexd / slackinviter

Go-ne slackin
MIT License
113 stars 34 forks source link

Make reCAPTCHA configuration optional. #27

Open danielmai opened 5 years ago

danielmai commented 5 years ago

This makes reCAPTCHA configuration variables SLACKINVITER_CAPTCHASITEKEY and SLACKINVITER_CAPTCHASECRET optional. If both of these aren't set, then it's considered off and will not be displayed on the invite page. Also, the expvars metrics for reCAPTCHA will not be written.

This lets users who are blocked from Google submit the form successfully (e.g., China users).