phone number validation for new users #2321
Labels
enhancement
New functionality that should be added to the Safe Haven
good first issue
This is a good issue for newcomers to the project to tackle
✅ Checklist
🍓 Suggested change
Add a lightweight (not too strict) phone number validation to the
dsh users add
command. To catch obvious user error early (e.g. number has too few or too many digits), before an Entra ID user is created.🚂 How could this be done?
There is a PyPi package called
phonenumbers
that is a Python port of Google'slibphonenumbers
library. An error could be thrown by thedsh users add
command is a phone number fails Google's validation.The text was updated successfully, but these errors were encountered: