Removed the check for 0 as the first digit in pins. This should be allowed
This commit is contained in:
parent
28a57c17bd
commit
9071166d9e
|
|
@ -141,11 +141,6 @@ namespace AtmAdmin {
|
|||
pinDigits[i] = (newPin[i] - '0');
|
||||
}
|
||||
|
||||
if (newPin[0] == '0') {
|
||||
errorReport("The first number cannot be \'0\'");
|
||||
return "invalid";
|
||||
}
|
||||
|
||||
// Checks if anything put into the pin is alphabetic.
|
||||
for (size_t i = 0; i < 4; i++) {
|
||||
if (!isdigit(newPin[i])) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user