This is a simple OTP (one passowrd) verification system built using PHP and MySQL. The system allows users to sign up with their email address and receive an OTP code via email, which they can then use to verify their account.
git clone https://github.com/AhmedS996/OTP-Verification-System.git
Create a new MySQL database and import the otp.sql
file from the project's database
folder.
Update the database connection settings in the Connection.php
file:
$conn = mysqli_connect('localhost', 'root', '', 'otp');
Update the email settings in the send_otp.php
file:
$mail->Host = 'smtp.gmail.com'; // SMTP server
$mail->Username = 'your-email@gmail.com'; // SMTP username
$mail->Password = 'your-email-password'; // SMTP password
$mail->setFrom('your-email@gmail.com'); // Sender email address
Start a PHP server on your local machine:
php -S localhost:8000
Open a web browser and navigate to http://localhost:8000/
to start using the OTP verification system.
Sign up with your email address.
Check your email inbox for the OTP code.
Enter the OTP code on the verification page and click "Verify".
If the OTP code is correct, your account will be activated and you will be redirected to the dashboard page.
Login to your account using your email address.
View your account information on the dashboard page.
This OTP verification system was built by AhmedS996 using PHP and MySQL. The PHPMailer library was used for sending OTP codes via email.
This project is licensed under the MIT License. Feel free to use and modify this project for your own purposes.