diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-06-09 17:02:12 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-06-09 17:02:12 +0100 |
commit | d363f51268565d955c76a5294b09a7009466e6ae (patch) | |
tree | 6a5249295931a2fc39387d57c13ecdfecc661649 /perllib/FixMyStreet/App.pm | |
parent | ef777353e5dda764874b713ff131d36868e94371 (diff) | |
parent | 766f0ed07864ac89a81d9356a8960c3c0744fc99 (diff) |
Merge branch 'recaptcha'
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r-- | perllib/FixMyStreet/App.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm index 6a41d93a9..4ca6f23cb 100644 --- a/perllib/FixMyStreet/App.pm +++ b/perllib/FixMyStreet/App.pm @@ -536,6 +536,11 @@ sub check_2fa { return 0; } +sub user_country { + my $c = shift; + return FixMyStreet::Gaze::get_country_from_ip($c->req->address); +} + =head1 SEE ALSO L<FixMyStreet::App::Controller::Root>, L<Catalyst> |