Menu

Input and Output of the Project

Input and Output of the Project

Input:

The user clicks the “Send OTP” button to generate a 4-digit OTP, which is displayed in a browser alert, and then enters it into the input fields, which support auto-focus and paste functionality.

Below are the screenshots of the input:

Output:

The system verifies the entered OTP and shows a success message if it matches or an error message if it is incorrect. It also includes a 30-second timer, after which the resend button is enabled, along with UI feedback such as loading states and timer updates.

Below are the screenshots of the output: