ambethia / recaptcha

ReCaptcha helpers for ruby apps
http://github.com/ambethia/recaptcha
MIT License
1.96k stars 439 forks source link

Add maixmum score for use with hCaptcha #410

Closed JPLynch35 closed 2 years ago

JPLynch35 commented 2 years ago

This gem can be used with hCaptcha, but hCaptcha scores are inverse to reCaptcha scores. hCaptchascores: 0.0 (no risk) to 1.0 (high risk) reCaptcha scores scores: 0.0 (high risk) to 1.0 (no risk)

This change is meant to add a maximum_score attribute that can be called with verify_recaptcha. It works just like minimum_score, but allows for the same idea to work when using hCaptcha.

Pre-Merge Checklist

grosser commented 2 years ago

thx, looks nice!

JPLynch35 commented 2 years ago

Not sure if it matters much, but noticed I have a spelling error in the commit message, "maixmum"

grosser commented 2 years ago

(5.10.0)