Recaptcha
check_recaptcha(token, expected_action)
ΒΆ
Check a user's recaptcha token is valid, and raise RecaptchaError if it's not. If the token is valid then this function has no side effects.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token
|
the token as returned in the frontend by a call to execute |
required | |
expected_action
|
the expected action associated with the token |
required |
Source code in ckanext/contact/recaptcha.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | |