diff --git a/src/AtmAdmin.cpp b/src/AtmAdmin.cpp index bcfef2e..29a2584 100644 --- a/src/AtmAdmin.cpp +++ b/src/AtmAdmin.cpp @@ -44,7 +44,13 @@ namespace AtmAdmin { std::cout << "Is this okay? (y or n) >: "; std::cin.get(userCheck); userCheck = static_cast(std::tolower(userCheck)); - if (userCheck == 'y' and choice == NAME) { + if (userCheck == 'y' and choice == PIN) { + mainStorage.pin = stoi(tempInformation); + std::cout << "New pin applied." << '\n'; + loopDone = true; + } + + else if (userCheck == 'y' and choice == NAME) { mainStorage.name = tempInformation; std::cout << "New name applied." << '\n'; loopDone = true;