londonhackspace / hackspace-foundation-sites

London Hackspace web site
https://london.hackspace.org.uk
32 stars 34 forks source link

Add flexibility with hexadecimal RFID UIDs entered by new members #173

Open kraptv opened 6 years ago

kraptv commented 6 years ago

Appropriate file to extend with a bit of string manipulation: members/addcard.php

Had an encounter where a new member wanted to add his card from the comfort of his own home but was entering in the content with reasonably valid content 0a:1b:2c:3d:4e but with lower case and colons. Once it was pointed out (wiki has been augmented) to enter in the details, he was appreciative, but it'd be nice to make the string input a little more flexible for valid RFID UIDs.

It'd be helpful also if we recreate a new mobile NFC scanning application we could use the native scanned string in the post and not have to format according to the spec.

This should be a straightforward matter of using strtoupper() and str_replace() in PHP (assuming that page is still written in PHP) to enable this functionality. Thanks.

marksteward commented 6 years ago

I'll do this as part of the Python upgrade.