aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Auth.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-06-09 17:02:12 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-06-09 17:02:12 +0100
commitd363f51268565d955c76a5294b09a7009466e6ae (patch)
tree6a5249295931a2fc39387d57c13ecdfecc661649 /perllib/FixMyStreet/App/Controller/Auth.pm
parentef777353e5dda764874b713ff131d36868e94371 (diff)
parent766f0ed07864ac89a81d9356a8960c3c0744fc99 (diff)
Merge branch 'recaptcha'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Auth.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Auth.pm3
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 {