Blackberry PIN verification
Do BlackBerry phone开发者_StackOverflows have any PIN-number verification function, similar to credit cards, which use last digit (a.k.a. check digit) for verification?
I am doing some order processing on my site, and users have to enter their BlackBerry PIN. Of course, once in a while they type it wrong. If there was some known verification function I would be able to spot this right away and ask the user to correct it.
you can try checking the pin that user input was in hex
website using javascript could do check like this
var hex=/^[0-9a-fA-F]*$/; if (hex.test(pin)==false) { do what u want with it }
精彩评论