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.
- 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.
- C++ compiler (e.g., g++)
- Clone the repository:
- Clone the repository:
git clone https://github.com/Hussien2002/codeAlpha_task2.git
- Navigate to the project directory:
cd codealphataske3 - Compile the C++ code:
g++ -o task3codealpha main.c
- Run the program:
./task3codealpha
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.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or feedback, please reach out to hussiene188@gmail.com