Skip to content

Hussien2002/codeAlpha_task2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

codeAlpha_task2

User Authentication System

Description

This is a simple user authentication system in C++ that allows users to register, login, and reset their passwords. User data is stored in a text file named dataofuser.txt.

Features

  • Register: Users can create a new account by providing a username and password.
  • Login: Users can log in with their credentials.
  • Reset Password: Users can reset their password if they forget it.

Requirements

  • C++ compiler (e.g., g++)

Installation

  1. Clone the repository:

Installation

  1. Clone the repository:
    git clone https://github.com/Hussien2002/codeAlpha_task2.git
  2. Navigate to the project directory:
    cd codealphataske3
  3. Compile the C++ code:
    g++ -o task3codealpha main.c
  4. Run the program:
    ./task3codealpha

Usage

1-Register a New User:

  • Run the program and choose option 1 to register.

  • Enter a username and password when prompted. This information will be saved in ---dataofuser.txt. 2-Login:

  • Run the program and choose option 2 to log in.

  • Enter your username and password. If the credentials match, you'll be logged in successfully. 3- Reset Password:

  • If you enter incorrect login credentials, you will be prompted to reset your password.

  • Enter reset password to proceed with password reset.

  • Provide your username and a new password. The password will be updated in dataofuser.txt.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For any questions or feedback, please reach out to hussiene188@gmail.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages