From 9071166d9e785646f54b48487c1e5cccb59d48ca Mon Sep 17 00:00:00 2001 From: theskywinds Date: Fri, 13 Jun 2025 12:46:43 +0200 Subject: [PATCH] Removed the check for 0 as the first digit in pins. This should be allowed --- src/AtmAdmin.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/AtmAdmin.cpp b/src/AtmAdmin.cpp index 29a2584..387e052 100644 --- a/src/AtmAdmin.cpp +++ b/src/AtmAdmin.cpp @@ -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])) {