gregjoeval / KnightcardSignInDevice

A device to store information from Knightcards to replace the physical sign-in clipboard.
2 stars 1 forks source link

Error check for not a knight card #20

Closed aleccaputo closed 7 years ago

aleccaputo commented 7 years ago

If someone swipes like a credit card

gregjoeval commented 7 years ago

This might not be a case we need to avoid. Unless we can access the school's database for knightcard numbers there might not be much we can do to prevent invalid numbers. What we could do is make sure the number on the card is the correct length, only made up of numbers, and starts with an '80'.

aleccaputo commented 7 years ago

I actually added that exact if statement to check for the 80. I just haven't committed it yet