diff --git a/src/AtmAdmin.cpp b/src/AtmAdmin.cpp index 02fbf0b..6392b69 100644 --- a/src/AtmAdmin.cpp +++ b/src/AtmAdmin.cpp @@ -3,7 +3,7 @@ namespace AtmAdmin { char startup() { char choice{}; - std::cout << "1. Change PIN\n" << "2. Change money\n" << "3. Change account name\n" << "Q. Exit the program\n\n"; + std::cout << "1. Change PIN\n" << "2. Change account name\n" << "3. Change money\n" << "Q. Exit the program\n\n"; std::cout << ">: "; std::cin >> choice; diff --git a/src/main.cpp b/src/main.cpp index 0a5846c..0cb990b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6,15 +6,30 @@ bool handleUserInformation(char choice, std::string& information) { switch (choice) { case '1': + // Implement a proper function for entering a new pin. + // The function should have a somewhat complex algorithm that forces the pin to be secure, and unique. + // It should also enforce 4 numbers. + + // Code below is a placeholder. std::cout << "Enter new pin: "; std::cin >> information; break; case '2': - std::cout << "Enter the amount you wish to have: "; + // Implement a function for entering a new username. + // The function should check if the name isn't already taken. If it is, return to start. + // It will also use an algorithm to check if it's a valid username + // This includes no spaces and no starting numbers. + // Ensure that the name is also converted to fully lowercase. + + // Code below is a placeholder + std::cout << "Enter your new username: "; std::cin >> information; break; case '3': - std::cout << "Enter your new username: "; + // Simply a way to cheat, very straight-forward. + + // Code below is a placeholder + std::cout << "Enter the amount you wish to have: "; std::cin >> information; break; case 'q':