Skip to content

This is a secure PHP login system that utilizes password hashing for enhanced security. The system connects to a MySQL database to handle user registration and login.

Notifications You must be signed in to change notification settings

haziq-bangash/authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secure PHP Login & Registration System

This is a secure PHP login system that utilizes password hashing for enhanced security. The system connects to a MySQL database to handle user registration and login.

Features

  • User registration with password hashing
  • Secure login with password verification
  • Session management for user authentication
  • MySQL database integration

Installation

Clone the repository:

git clone https://github.com/your-username/secure-php-login-system.git
  1. Import the database structure by executing the database.sql file on your MySQL server. This will create the necessary users table.
  2. Configure the database connection in the PHP files:
    Open register.php, login.php, and index.php files and update the following line with your MySQL database credentials:
    $conn = mysqli_connect("localhost", "root", "", "authentication");
    Replace "localhost" with your database host, "root" with your database username, "" with your database password, and "authentication" with your database name.
  3. Upload the PHP files to your web server.
  4. Access the application through your web server's URL.

Usage

User Registration

  1. Visit the registration page.
  2. Fill out the registration form with your name, email, and password.
  3. Click on the "Register" button.
  4. If the registration is successful, you will be redirected to the login page.

User Login

  1. Visit the login page.
  2. Enter your registered email and password.
  3. Click on the "Login" button.
  4. If the login is successful, you will be redirected to the authenticated page.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please create an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

This is a secure PHP login system that utilizes password hashing for enhanced security. The system connects to a MySQL database to handle user registration and login.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published