Skip to content

This is a Java-based web application implementing a simple user authentication system using servlets. It provides basic functionalities for user registration, login, and session management.

Notifications You must be signed in to change notification settings

ronakbediya310/User-Authentication-System-Using-Servlets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User Authentication System

This is a Java-based web application implementing a simple user authentication system using servlets. It provides basic functionalities for user registration, login, and session management.

Features

  • User Registration: Allows users to create new accounts with a unique username and a securely hashed password.
  • User Login: Provides authentication using stored credentials, granting access upon successful login.
  • Session Management: Maintains user sessions for authenticated users.

Technologies Used

  • Java Servlets
  • MySQL Database
  • BCrypt for password hashing

Project Structure

  • src/ - Contains the Java servlets and backend logic.
  • webapp/ - Includes HTML, CSS, and frontend resources.
  • database/ - SQL scripts for database setup and schema.

Setup Instructions

  1. Database Configuration:

    • Create a MySQL database and execute the provided SQL scripts (database/setup.sql).
    • Update DB_URL, DB_USER, and DB_PASSWORD in the servlets accordingly.
  2. Project Setup:

    • Clone the repository.
    • Import the project into your preferred Java IDE.
  3. Run the Application:

    • Deploy the project on a servlet container (e.g., Apache Tomcat).
    • Access the application via the browser at http://localhost:8080/UserAuth.

Usage

  • Access the login and registration functionality via the respective HTML pages.
  • Test the user authentication flow by registering a new user and then logging in.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests with improvements or additional features.

screenshot Alt text

About

This is a Java-based web application implementing a simple user authentication system using servlets. It provides basic functionalities for user registration, login, and session management.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published