This repository contains a simple OTP (One-Time Password) login system implemented in PHP. Users can register, receive an OTP on their mobile number, and then log in by verifying the OTP.
-
index.html:
- Contains the HTML and JavaScript code for the user interface.
- Allows users to enter their mobile number, request OTP, and verify OTP.
-
dashboard.php:
- The dashboard page that users are redirected to after successful OTP verification.
- Displays a welcome message or additional user information.
-
send_otp.php:
- Generates a random OTP, stores it in the session for verification, and sends it to the user's mobile number using a webhook.
-
verify_otp.php:
- Verifies the user-entered OTP against the one stored in the session.
- Clone the Repository:
git clone https://github.com/Haris-khan-Durrani/login-with-otp.git cd login-with-otp