A login and registration comsole application made with C++20.
A login and registration system that allows a user to create a new profile, complete with a username and password. The user can then read their profile, change their password, or delete it. The user profile will exist even after the project is closed, making it possible to login at a later date. The program was created entirely in C++ using the latest standards.
During the course of this (estimated) two-week long project, I learned about the filesystem library, directories and paths, linkers, and exceptions. I also gained a deeper understanding of the fstream library and modern programming practices.
Later on, I hope to implement a way to keep track of the time and date a user last logged into their profile.
Go to the top left corner and click "Fork". This will create a copy of the repository in your Github account. Then navigate to the copied repository on your account titled YOUR_USERNAME/Login-and-Registration-System, where YOUR_USERNAME is your Github username. Click the "Code" button on the main page of the repository. Copy the link under "Clone with HTTPS". Open Git Bash on your desktop. Change the directory shown on the screen in Git Bash to the folder where you want the project to be. Then type git clone
and paste the link to Git Bash. Press "Enter" to create the clone. For more information, consult the Github documentation.
When the program is run, the main menu will appear in the console. Enter a number 1-3 to either
- login to an existing account
- create a new profile, or
- exit the program
Enter in the required credentials as they show up in the console.
After logging in/signing up, the account options will appear in the console. Enter a number 1-4 to
- read the information in your profile,
- reset your username,
- reset your password,
- delete your account, or
- sign out
When you select "Read User Profile", it will show your first and last name, username, and password.
When you create a profile, it will appear in the folder “Login and Registration System” as a text file titled “User_your_username_here”, where “your_username_here” is the username for the account.
Credit to Stack Overflow user Chris contributed the following lines as part of an answer to a question on Stack Overflow. They appear twice in the project: in the main() function and the accountOptions() method.
std::cin.clear();
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');