Class: CaptchaManager

Inherits:
Object
  • Object
show all
Defined in:
lib/trustcaptcha/captcha_manager.rb

Defined Under Namespace

Classes: SecretKeyInvalidException, VerificationNotFinishedException, VerificationNotFoundException, VerificationTokenInvalidException

Class Method Summary collapse

Class Method Details

.get_verification_result(secret_key, base64_verification_token) ⇒ Object



14
15
16
17
# File 'lib/trustcaptcha/captcha_manager.rb', line 14

def self.get_verification_result(secret_key, base64_verification_token)
  verification_token = get_verification_token(base64_verification_token)
  fetch_verification_result(verification_token, secret_key)
end