Skip to content

Repository files navigation

🔐 PHP Authentication System

A secure user authentication system built with PHP, MySQL, HTML, CSS, and Bootstrap. This project implements a complete authentication workflow including user registration, login, profile management, image upload, and password reset functionality.

The goal of this project is to demonstrate secure backend development, session management, and database integration using core PHP.


🚀 Features

  • User Registration with password validation
  • Secure Login system using PHP sessions
  • Password hashing for security
  • User Dashboard after login
  • Profile management (update name, bio, profile image)
  • Image upload with file validation
  • Forgot Password functionality
  • Reset password using secure token
  • Role based access (Admin/User)
  • Responsive UI using Bootstrap

🛠️ Technologies Used

  • Frontend: HTML, CSS, Bootstrap
  • Backend: PHP
  • Database: MySQL
  • Server: XAMPP / Apache
  • Security: Password Hashing, Token-based Reset System

📂 Project Structure

auth-system/
│
├── index.php            # Login page
├── register.php         # User registration
├── dashboard.php        # User dashboard
├── profile.php          # Profile management
├── forgot_password.php  # Generate reset link
├── reset_password.php   # Reset password page
├── logout.php           # Logout system
│
├── functions.php        # Helper functions
├── db.php               # Database connection
│
├── uploads/             # Profile images
└── style.css            # Styling

🔒 Security Features

  • Password hashing using password_hash()
  • Secure session management
  • File upload validation (type & size)
  • Token-based password reset
  • Input sanitization

📸 Screenshots

  • Registration Page
  • Login Page
  • Dashboard
  • Profile Update
  • Forgot Password
  • Reset Password

(Screenshots available in project folder)


⚙️ Installation

  1. Clone the repository
git clone https://github.com/yourusername/auth-system.git
  1. Move the project to:
xampp/htdocs/
  1. Create database:
student_db
  1. Import the SQL file in phpMyAdmin

  2. Start Apache & MySQL in XAMPP

  3. Open in browser:

http://localhost/auth-system

📈 Future Improvements

  • Email verification system
  • OTP based login
  • Two-factor authentication
  • Admin user management panel
  • API version of authentication system

👨‍💻 Author

Prince Kumar

MCA Student | Full Stack Developer | Data Analysis Enthusiast

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages