This is a PHP-based user authentication project with email and password functionality.
This project aims to provide user authentication using PHP and MySQL. It includes registration, login, and logout functionalities. The user's email and password are stored securely in the database.
- User registration: Allows users to create a new account with a unique email and password.
- User login: Authenticates users by comparing their email and password with the stored credentials.
- Password hashing: Uses the
password_hash()
function to securely hash and store user passwords. - Session management: Utilizes PHP sessions to keep track of user authentication status.
- Database integration: Stores user data, including email and hashed password, in a MySQL database.
- PHP
- MySQL
- HTML/CSS
- Bootstrap
- PHP
- MySQL database
- Web server (e.g., Apache, Nginx)
- Clone the repository or download the project files.
- Create a MySQL database and import the provided SQL schema.
- Configure the database credentials in the
config/db.php
file. - Ensure that the necessary PHP extensions are enabled (e.g., PDO for database connection).
- Set up a web server to run the PHP application.
- Access the project in your web browser.
- Open the registration page and create a new user account.
- Log in with the registered email and password.
- Perform desired actions based on the project's functionality.
- Log out to end the session.
Contributions to this project are welcome. You can submit bug reports, feature requests, or pull requests on the project's GitHub repository.
This project is licensed under the MIT License.