diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-06-01 10:47:27 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-06-04 09:08:51 +0100 |
commit | 766f0ed07864ac89a81d9356a8960c3c0744fc99 (patch) | |
tree | 440472de4f4f6db5785a97c298dbce0914613ecf /perllib/FixMyStreet/App/Controller/Auth.pm | |
parent | a7541a181013378da0090da53847c882881825d0 (diff) |
[fixmystreet.com] Add option for recaptcha.
We are getting spam submissions of e.g. alert subscribe form,
which causes people to get a confirmation email.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Auth.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Auth.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Auth.pm b/perllib/FixMyStreet/App/Controller/Auth.pm index cecfa318c..beba6b235 100644 --- a/perllib/FixMyStreet/App/Controller/Auth.pm +++ b/perllib/FixMyStreet/App/Controller/Auth.pm @@ -448,6 +448,9 @@ sub check_csrf_token : Private { unless $time && $time > time() - 3600 && $token eq $gen_token; + + # Also check recaptcha if needed + $c->cobrand->call_hook('check_recaptcha'); } sub no_csrf_token : Private { |