Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A simple and secure authentication system built using Java, Swing, and AWT. It allows users to create accounts, log in, and log out with error handling for common issues like incorrect credentials or empty fields. Easily set up by cloning the repository, compiling, and running the Java application.

Notifications You must be signed in to change notification settings

giriraj-g0511/LogIn-LogOut_Feature

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Login/Logout System 🚪🔑

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.

🌟 Features

  • 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). ⚠️

🚀 Key Functionalities

  • 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. 🔄

⚠️ Error Handling

  • 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. 🚫

🛠️ Installation

To set up this system on your local machine:

  1. Clone the repository:

    git clone https://github.com/yourusername/login-logout-system.git
    cd login-logout-system
  2. Compile the Java files:

    javac LoginSystem.java
  3. Run the application:

    java LoginSystem

📑 Usage

  • 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. 🔄

💬 Contributing

Feel free to contribute to the project by forking the repository, submitting issues, or sending pull requests with improvements or new features! 🌱

📧 Support

For issues or feature suggestions, open an issue on GitHub: Issues or contact: [email protected] 📬

📜 License

This project is licensed under the MIT License. See the LICENSE file for more information.

About

A simple and secure authentication system built using Java, Swing, and AWT. It allows users to create accounts, log in, and log out with error handling for common issues like incorrect credentials or empty fields. Easily set up by cloning the repository, compiling, and running the Java application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages