PHP Login with OTP Authentication - 1

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello friends in this video tutorial we will make PHP login form with OTP method authentication this is because login with ODB method which is secure method for user authentication process in previous tutorial we have made user registration with email verification by using OTP method in PHP script and here we will make login form with OTP method authentication in PHP so this is login form first here we have to enter register email address and click on next button after click on Next button then it has asked for enter password so here we have to enter password which we have enter at the time of registration and press next button here it will take some time because it has sent OTP number via email at the email address so after click on Next button then it has asked for enter OTP number so for this we have go to email INBOX and here we can see login OTP email has been received and under email we can see one OTP number so we have copied it and then after we have go to login page and here we have enter OTP number and click on Next button after click on Next button here we can login into system and we can see welcome John Smith message on web page with logout button so suppose we want to log out from system so we have simply click on log out button then it will log out to user and redirect to login page so this type of PHP login form we have to build in this tutorial with OTP authentication now let's start discussing this topic so this is our testing database and in register user we have store register user data and here we have make one more table with name login data in this table we can see five table column like login ID user ID login OTP last activity and login date/time table column when user has login into system then login data like user OTP number user ID login date time data will be stored under this table this is our working folder in this folder we have already make email verify dot PHP index dot PHP file in previous PHP user registration tutorial and for login tutorial here we have at home dot PHP file login dot PHP file login verify dot PHP file and logout dot PHP file in class folder we have stored PHP mailer class first we have open index dot PHP file in which we have already write PHP script for user registration but for redirect to login page here we have right and contact with breath is equal to login dot PHP file with login anchor text by click on this link user will redirect to login page now we have go to login dot PHP file and here we want to make login form so here we have write form tag with method is equal to post and ID is equal to login form under this form we have create on division tag with class is equal to form group and ID is equal to email area under this tag we will make text box for enter email address details so for enter email address details here we have write input type is equal to text name is equal to user email and ID is equal to user email for display this text box validation error here we have right span tag with ID is equal to user email error and class is equal to text danger below this we have create one more division tag with class is equal to form group ID is equal to password area under this tag we will make textbox for enter password details here we have also right style is equal to display property with value none so when page will load then content of this tag will not display on web page under this tag we have right input type is equal to password name is equal to user password ID is equal to user password for display this password field validation error here we have right span tag with ID is equal to user password error and plus is equal to text danger next we have create one more division tag with class is equal to form group and ID is equal to OTP area under this tag we will make textbox for enter OTP number in this tag we have right style is equal to display property with value none so this tag content will not display on webpage when page has been load in browser for enter OTP number here we have right input type is equal to text name is equal to user OTP and ID is equal to user OTP for display this OTP text box validation error here we have right span tag with ID is equal to user OTP error and class is equal to text danger now we have right create one input type is equal to hidden field with name is equal to action ID is equal to action and value is equal to email this hidden field value we will use at server side for verify user data for submit form data here we have write input type is equal to submit name is equal to next ID is equal to next plus is equal to button button primary class and value is equal to next by click on this button form data will be submitted to server using Ajax so friends in this part we have seen general introduction of video tutorial and then after we have make log in HTML login form in next part we will write Ajax Jakari script for send form data to PHP script and verify email address details if you have any query or inputs regarding this part please commence your query or input in comment box or if you like this video tutorial please share with your friends or even you can also share on social media also
Info
Channel: Webslesson
Views: 14,750
Rating: undefined out of 5
Keywords: PHP, login, two factor authentication, otp verification, generate otp, session, php mysql, password, PHP Ajax, jQuery Ajax, PHP JQuery, PHP OTP Login, otp login, login otp php, php login using session, php otp login, php login, php login with otp authentication, login php, email otp verification, how to implement otp in php, login form, login with otp, mysql, otp login system, how to generate otp number in php, php login using ajax, otp based login in php
Id: 3XXQTYJbo3o
Channel Id: undefined
Length: 9min 52sec (592 seconds)
Published: Tue Jun 30 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.