Closed certrik closed 5 years ago
phone numbers are checked with https://github.com/daviddrysdale/python-phonenumbers
which - interestingly - allows letters
x = phonenumbers.parse('+431231231a123', None) print(x) Country Code: 43 National Number: 1231231123
fixed in e8df1fd613f1e830a4a7d006ebe12156f22169d4
a better way for error messages has to be found
@wagner-certat please merge into release after testing and close issue
@wagner-certat please merge into release after testing and close issue
cherry-picked to release (there's no extra branch for the fix)
Keep in mind that this invalidates existing data. I.e. formerly valid data (e.g. +43 1 95
) will be rejected now as invalid.
The issues with the error messages is still present.
fixed in f481395e51125d34b495cd1f9122bc5e039df607
Please implement as HOTFIX: In the phone and mobile fields of the "Membership Details" area it should only be possible to put in numerical characters (also no spaces) except the plus sign "+" at the beginning of the number. If the input is wrong it should clearly state the problem (with description "Attribute error. Invalid phone or mobile. The number must start with '+' and only comprise numerical characters." ). The warning should be separated from the warning of a wrong email adress.