app.utilities.recaptcha

Functions

verify_recaptcha(recaptcha_response,Β remote_ip)

Verify the reCAPTCHA response.

Module Contents

app.utilities.recaptcha.verify_recaptcha(recaptcha_response, remote_ip)[source]

Verify the reCAPTCHA response.

Parameters:
  • recaptcha_response (str) – The response token from the reCAPTCHA widget.

  • remote_ip (str) – The IP address of the user.

Returns:

True if verification succeeded, False otherwise.

Return type:

bool