Format phone number correctly before submitting
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.
parent
72970889
No related branches found
No related tags found
Showing
- frontend/package-lock.json 7 additions, 7 deletionsfrontend/package-lock.json
- frontend/package.json 1 addition, 1 deletionfrontend/package.json
- frontend/src/routes/guest/register/index.tsx 3 additions, 3 deletionsfrontend/src/routes/guest/register/index.tsx
- frontend/src/utils/index.ts 1 addition, 1 deletionfrontend/src/utils/index.ts
Loading
Please register or sign in to comment