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/DB | |
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/DB')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/User.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/User.pm b/perllib/FixMyStreet/DB/Result/User.pm index 296cf997d..d02039ac3 100644 --- a/perllib/FixMyStreet/DB/Result/User.pm +++ b/perllib/FixMyStreet/DB/Result/User.pm @@ -196,7 +196,7 @@ sub check_for_errors { my $parsed = FixMyStreet::SMS->parse_username($self->phone); if (!$parsed->{phone}) { $errors{username} = _('Please check your phone number is correct'); - } elsif (!$parsed->{phone}->is_mobile) { + } elsif (!$parsed->{may_be_mobile}) { $errors{username} = _('Please enter a mobile number'); } } |