Removed the check for 0 as the first digit in pins. This should be allowed

This commit is contained in:
theskywinds 2025-06-13 12:46:43 +02:00
parent 28a57c17bd
commit 9071166d9e

View File

@ -141,11 +141,6 @@ namespace AtmAdmin {
pinDigits[i] = (newPin[i] - '0'); 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. // Checks if anything put into the pin is alphabetic.
for (size_t i = 0; i < 4; i++) { for (size_t i = 0; i < 4; i++) {
if (!isdigit(newPin[i])) { if (!isdigit(newPin[i])) {