This project implements a login/logout feature along with a create new account functionality using Java, Swing, and AWT. It is designed to provide users with a secure and simple authentication process for accessing the application.
- Create New Account: Easily create new accounts with a username and password. 🚀
- Login: Securely log in with your username and password. 🔐
- Logout: Logout option to end the session and return to the login screen. 🔓
- Error Handling: User-friendly dialogue boxes are displayed for error scenarios (e.g., incorrect credentials, empty fields).
⚠️
- Account Creation: Handles user registration with validation to prevent duplicate accounts. 📝
- Login Process: Ensures secure authentication by validating the entered username and password. 🔍
- Logout Mechanism: Clears the session data when logging out and returns the user to the login screen. 🔄
- Invalid Credentials: If the user enters incorrect login details, an error dialog is shown with a helpful message. ❌
- Empty Fields: Prompts the user to fill in both the username and password if left empty. ✍️
- Account Exists: Prevents creating a new account with an already existing username and alerts the user. 🚫
To set up this system on your local machine:
-
Clone the repository:
git clone https://github.com/yourusername/login-logout-system.git cd login-logout-system -
Compile the Java files:
javac LoginSystem.java
-
Run the application:
java LoginSystem
- On the login screen, enter your username and password to log in. 🔑
- If you don’t have an account, click Create New Account to register. ✨
- After logging in, click Logout to end the session and return to the login screen. 🔄
Feel free to contribute to the project by forking the repository, submitting issues, or sending pull requests with improvements or new features! 🌱
For issues or feature suggestions, open an issue on GitHub: Issues or contact: [email protected] 📬
This project is licensed under the MIT License. See the LICENSE file for more information.