app.utilities.recaptchaο
reCAPTCHA verification utilities for the Mail List Shield application.
This module provides functions for verifying Google reCAPTCHA v2 responses to protect forms from automated submissions.
Functionsο
|
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