Now, to edit this, you need to understand how exactly the OTP is being generated, so go to the page.js file present in the "generator" sub-directory of "src/app" and make your changes there. The OTP is generated using the user's IP address and the time, and the OTP remains valid for 2 minutes, so after 2 minutes if you press the generate button, the OTP will change but before that it would remain the same. Now what you can add, which is missing till now, is to take a phone number or email address as user input and send the OTP directly there.
Some points to remember:
- Try to keep this OTP messaging/emailing capabilities free and open source and don't use any paid service.
- Now change the OTP generating algorithm so that it involves the mobile number/email id inputted as well.
Now, to edit this, you need to understand how exactly the OTP is being generated, so go to the page.js file present in the "generator" sub-directory of "src/app" and make your changes there. The OTP is generated using the user's IP address and the time, and the OTP remains valid for 2 minutes, so after 2 minutes if you press the generate button, the OTP will change but before that it would remain the same. Now what you can add, which is missing till now, is to take a phone number or email address as user input and send the OTP directly there.
Some points to remember: