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.
- 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
- Frontend: HTML, CSS, Bootstrap
- Backend: PHP
- Database: MySQL
- Server: XAMPP / Apache
- Security: Password Hashing, Token-based Reset System
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
- Password hashing using
password_hash() - Secure session management
- File upload validation (type & size)
- Token-based password reset
- Input sanitization
- Registration Page
- Login Page
- Dashboard
- Profile Update
- Forgot Password
- Reset Password
(Screenshots available in project folder)
- Clone the repository
git clone https://github.com/yourusername/auth-system.git
- Move the project to:
xampp/htdocs/
- Create database:
student_db
-
Import the SQL file in phpMyAdmin
-
Start Apache & MySQL in XAMPP
-
Open in browser:
http://localhost/auth-system
- Email verification system
- OTP based login
- Two-factor authentication
- Admin user management panel
- API version of authentication system
Prince Kumar
MCA Student | Full Stack Developer | Data Analysis Enthusiast