pytition / Pytition

Django app for self-hosted privacy-friendly online petitions
https://pytition.org
BSD 3-Clause "New" or "Revised" License
97 stars 28 forks source link

Issues with phone number validation : for instance 07 does not work for France #306

Open fallen opened 1 year ago

fallen commented 1 year ago

For instance go to https://petition.antipub.org/petition/25/ and try to sign it with phone number 07 12 34 56 78 it will be refused, even though lots of people have mobile numbers starting with 07 in France.

Do you know how to fix this @Benbb96 ?

Benbb96 commented 1 year ago

Hi @fallen

Are you sure that this phone number is indeed a valid one ? I tried on this website https://messente.com/phone-validator and it says it isn't. In my experience, 07 numbers should work with PhoneNumberField. Maybe an update of the package is needed to let new phone numbers work..

fallen commented 1 year ago

Ok indeed I tried with a real 07 number and it worked. Someone reported to me some issues but I don't have the exact number.

I will try to reproduce the issue with a real number. Thanks for your quick answer :)