+ 9

# OTP Verification System!

How to creat otp verification system in signup page ? Can someone give an example or snippets of code please ?

3rd Feb 2019, 6:29 AM
Sonu Kumar
+ 4
One-time Passwords (OTP) is a password that is valid for only one login session or transaction in a computer or a digital device. Now a days OTP’s are used in almost every services like Internet Banking, online transactions etc. They are generally combination of 4 or 6 numeric digits or a 6-digit alphanumeric. The random function is used to generate random OTP which is predefined in Math library. This article describe how to generate OTP using JavaScript. Used Function: Math.random(): This function returns any random number between 0 to 1. Math.floor(): It returns floor of any floating number to a integer value. Using the above function pick random index of string array which contains all the possible candidates of a particular digit of the OTP.
3rd Feb 2019, 5:41 PM
Sonu Kumar
+ 4
Timothy Kipkosgei here is an example of text paragraph rotation https://code.sololearn.com/WiHqhgyuuvR2/?ref=app
4th Feb 2019, 1:13 PM
Sonu Kumar
+ 3
<script>    // Function to generate OTP function generateOTP() {                // Declare a digits variable      // which stores all digits     var digits = '0123456789';     let OTP = '';     for (let i = 0; i < 6; i++ ) {         OTP += digits[Math.floor(Math.random() * 10)];     }     return OTP; }    document.write("OTP of 4 digits: ") document.write( generateOTP() ); </script>
3rd Feb 2019, 5:42 PM
Sonu Kumar
3rd Feb 2019, 7:06 AM
Sahil Bhakat
0
I wanna know how to rotate a paragraph in css3 please.anyone help
4th Feb 2019, 11:10 AM
Timothy Kipkosgei
0
😂 OTP are not that much easier
5th Feb 2019, 1:48 AM
Charan Leo25
- 1
Hola
3rd Feb 2019, 1:45 PM
armando22