Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

ashleymays/Login-and-Registration-System

Repository files navigation

Login and Registration System

A login and registration comsole application made with C++20.

Table of Contents

Project Description

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.

How to Install and Run

Clone the Repository

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.

How to Use the Project

When the program is run, the main menu will appear in the console. Enter a number 1-3 to either

  1. login to an existing account
  2. create a new profile, or
  3. 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

  1. read the information in your profile,
  2. reset your username,
  3. reset your password,
  4. delete your account, or
  5. 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.

Credits

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');

About

A login and registration system made with C++20 that creates a new file for each user and stores the file in the project folder.

Topics

Resources

Stars

Watchers

Forks

Languages