wuvt / trackman

WUVT's track logging web-app
GNU Affero General Public License v3.0
4 stars 3 forks source link

Better Phone number validation when creating or updating DJ #52

Closed echarlie closed 6 years ago

echarlie commented 6 years ago

We should verify that the phone number entered is in fact a phone number, and not a string. We should also ensure it isn't the station's phone number, and maybe sanity check that it's not a 555 number.

mutantmonkey commented 6 years ago

I'm not going to bother validating the sanity of the phone number, only the format. If DJs are not going to enter correct information, that's an issue that should be raised with the FMPD, not something we should try to implement a technical solution for.