Тёмный
No video :(

2-Step Verification Based Login System using OTP | PHP Project | JS | PHPMailer | Mysql 

CS with NJ
Подписаться 3,3 тыс.
Просмотров 14 тыс.
50% 1

OTP-Based 2-Step Login Verification
This Project implements 2-step verification to login system by sending One Time Passoword (OTP) once the user has been partially verified as registered user in the first step.
Frontend
HTML, CSS, Javascript and FETCH API for server side communication
Backend
1. PHP
2. PHPMailer for sending OTP to the user
Code can be accessed at github.com/nur...
chapters
0:00 - Introduction
0:74 - Demo
03:21 - HTML Code
10:06 - JS logic for sending Http Requests to Server using FETCH API
26:20 - Complementing PHP logic to send email to the user with OTP and HTTP Replies to the FETCH Http Requests
43:36 - Sending Email logic
51: 04 - Frontend Logout logic (js)
53:38 - Backend Logout Logic (php)
1:01:08 - Testing

Опубликовано:

 

14 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 36   
@sixtusushahemba9419
@sixtusushahemba9419 Год назад
You know what? First, I honestly respect you, for such a great and deep understanding of how these languages work. Your explanation also is well clear and detailed. I really love it, I would appreciate if you can make a tutorial of this same kind but consisting of Signup form, Login form, Sign out and Update password. The Update password is actually the reason why I'm suggesting this. Cos I do have a site consisting of those three but don't have a proper knowledge on how to make the user Update their password.
@CSwithNJ
@CSwithNJ Год назад
Thanks alot for the appreciation. As for the reset password is concerned, I will try to make a video about it (hopefully soon)
@theunknownlegend6971
@theunknownlegend6971 2 года назад
Thanks Mam for this video
@CSwithNJ
@CSwithNJ 2 года назад
Most welcome ☺
@wp2799
@wp2799 3 месяца назад
Thankss :)
@veeresh812
@veeresh812 Месяц назад
Mam how your email and otp came in mysql table. Im having issues with that please reply as soon as possible
@user-zl5un8xx2w
@user-zl5un8xx2w 9 месяцев назад
Hello, i can't get my database(PhpMyAdmin) to connect, it keeps showing "Undefined variable $num_rows in C:\.\backend\login.php on line 17", is there a specific video that i can refer to create the database shown?
@aogunnaike
@aogunnaike 2 года назад
👍
@RamyaK-po4qo
@RamyaK-po4qo Год назад
Failed to load resource: the server responded with a status of 404 (Not Found) localhost/:1 Uncaught (in promise) SyntaxError: Unexpected token '
@paindos
@paindos 2 года назад
Gmail SMTP doesn't work. They closed their services. Do you have any other SMTP such as sendinblue etc? If yes would you please make a video so that we can learn how to send verification email
@CSwithNJ
@CSwithNJ 2 года назад
Thanks for idea; I'll definitely look into it.
@bolgorwheat8753
@bolgorwheat8753 Год назад
Hi, what database table did you create for this? Only email?? Thanks.
@edjoshualajola7635
@edjoshualajola7635 2 года назад
do you have a sample on how did you do on creating table in mysql workbench the email and otp?
@CSwithNJ
@CSwithNJ 2 года назад
I am not quite sure what are you trying to ask. If you have not used workbench you can use phpadmin and create a very basic table with two fields and make their data type varchar. It's a very basic table that is why I skiped creating that table in the video; however connectivity with the database through php, I have shown that in the video. If you really interested in seeing that table creation then you man checkout my other videos. And for the mysql workbench you can download it with mysql community server.
@jessenjie6202
@jessenjie6202 2 года назад
do you know how to send otp for mobile fhone and works for many countries?
@CSwithNJ
@CSwithNJ 2 года назад
You should combine the contents of this video with ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-SNcXnuy4WC0.html video for sending OTP as SMS. I believe MessageBird works for many countries.
@jessenjie6202
@jessenjie6202 2 года назад
@@CSwithNJ thankyou!!
@yashboy4223
@yashboy4223 Год назад
What is inside of vendor file. Video mai vendor file dikh rahi hai, par website mai jo source code hai usme vendor file nahi hai.
@CSwithNJ
@CSwithNJ Год назад
Ap code download ker k use folder man jaker "composer install" command execute kerain ge to ye folder khud ke create ho Jae ga. Agar composer installed Nahi to pehlay composer install karain. Composer PHP ka package manager hay just like npm is for node
@yashboy4223
@yashboy4223 Год назад
@@CSwithNJ Thank you mam, par mere vs code mai composer downloaded hai, par jab mai terminal mai package install karne ki koshish karta hu tab 'can't recognize composer' yesa error aata hai
@CSwithNJ
@CSwithNJ Год назад
Run "composer -v" in the terminal and see what response u get
@yashboy4223
@yashboy4223 Год назад
@@CSwithNJ ye method bhi kam nahi kar rahi. Maine vscode mai composer extension download kiya hai, par running time mai not activate yet yesa message aa raha hai. Kya Muje systemai mai bhi composer download karna hoga
@tntechnology3049
@tntechnology3049 Год назад
Warning: require(vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\OTP-Based-Login-System-In-PHP-JS-main\backend\login.php on line 9
@CSwithNJ
@CSwithNJ Год назад
Have u installed phpMailer? If no then install it if yes then perhaps the path to vendor/autoload is different.
@TAHA_YONIS
@TAHA_YONIS Год назад
can you send the database code, I try several times all time error, I don't know why
@CSwithNJ
@CSwithNJ Год назад
What error are u getting?
@CSwithNJ
@CSwithNJ Год назад
You can watch my e-commerce series to get an idea of how to create a database, tables and fill data in it.
@TAHA_YONIS
@TAHA_YONIS Год назад
I didnot Know what is wrong i do all well and connected put NO OTP GENERAT
@TAHA_YONIS
@TAHA_YONIS Год назад
@@CSwithNJ can you send the SQL THAT YOU USED IN THIS VEDIO PLEASE
@TAHA_YONIS
@TAHA_YONIS 2 года назад
Can you send cod of style. Css please
@CSwithNJ
@CSwithNJ 2 года назад
Do checkout the github link in the description; you will get CSS style file there.
@TAHA_YONIS
@TAHA_YONIS 2 года назад
@@CSwithNJ Thanks
@tirupatihosalli9689
@tirupatihosalli9689 Год назад
Email code no plz
@cachaperena1893
@cachaperena1893 2 года назад
can I have source code for this?
@CSwithNJ
@CSwithNJ 2 года назад
The link for the code is in the description box; plz check ot out.
Далее
PHP Password Reset by Email
20:56
Просмотров 52 тыс.
Complete PHP Registration w/ Email Verification
21:04
Просмотров 119 тыс.
The Story of Next.js
12:13
Просмотров 562 тыс.
PHP Registration with Email Verification using OTP - 1
12:49
Always Check for the Hidden API when Web Scraping
11:50
I've been using Redis wrong this whole time...
20:53
Просмотров 351 тыс.