diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-10-05 08:10:58 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-10-05 08:10:58 +0100 |
commit | bb24ffc0e9e3eaf2b9cfb7e88020a9b5b0328a3e (patch) | |
tree | dd3ba6c0cf86ecc4c1fb6ab5b3f377b52c81cd06 /perllib/FixMyStreet/App/Controller/Auth.pm | |
parent | 70ddda2c5e851c012b2bb98ec74c87490be6dad0 (diff) |
Accept +1 geographic numbers as possibly mobile.
We have no way of knowing whether a +1 geographic number is fixed
line or mobile, so accept them all as potentially mobile.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Auth.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Auth.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Auth.pm b/perllib/FixMyStreet/App/Controller/Auth.pm index b453f593b..80e407147 100644 --- a/perllib/FixMyStreet/App/Controller/Auth.pm +++ b/perllib/FixMyStreet/App/Controller/Auth.pm @@ -119,7 +119,7 @@ sub code_sign_in : Private { my $parsed = FixMyStreet::SMS->parse_username($username); if ($parsed->{type} eq 'phone' && FixMyStreet->config('SMS_AUTHENTICATION')) { - $c->forward('phone/sign_in', [ $parsed->{phone} ]); + $c->forward('phone/sign_in', [ $parsed ]); } else { $c->forward('email_sign_in', [ $parsed->{username} ]); } |