Skip to content
  • Andreas Ellewsen's avatar
    8ee96ce5
    Format phone number correctly before submitting · 8ee96ce5
    Andreas Ellewsen authored
    Instead of manually putting together the phone number and hoping we get
    it right, we instead format the number using the phonenumbers library.
    This library is already in use for validation, making it the obvious
    choice. This means that the backend will only receive E.164 formatted
    phonenumbers from now on. In addition, we now ensure that the number is
    in fact a mobile phone number.
    8ee96ce5
    Format phone number correctly before submitting
    Andreas Ellewsen authored
    Instead of manually putting together the phone number and hoping we get
    it right, we instead format the number using the phonenumbers library.
    This library is already in use for validation, making it the obvious
    choice. This means that the backend will only receive E.164 formatted
    phonenumbers from now on. In addition, we now ensure that the number is
    in fact a mobile phone number.
Loading Analyzing file…
Loading