How to verify email with a verification code - PHP & MySQL

preview_player
Показать описание
When someone registers on your website, send him/her an email with a verification code and show a form to enter the code on your website.

Gmail SMTP New Method 2023:

The user must enter the verification code in that form to verify his email.
Only verified users will be allowed to log in.

Download source files:
Рекомендации по теме
Комментарии
Автор

I encountered an error Warning require(vendor/autoload.php): failed to open stream: No such file directory in C:\xampp\htdocs\. Although I have already a vendor folder and phpmailer folder. What should I do bro? Please can you help me?

johnhowellatienza
Автор

Thank you for your hard work, it works on my local computer but it doesn't work when I put it on the hosting, please help me

SalohiddinAbruyev
Автор

Hi Adnan, I already typed the correct host name, username and my database name in the mysqli_connect part but the values does not enter my users table. Do you know what could be the problem here? And thanks for the video

delalxndr
Автор

Bro this video is awesome helped me to generate email otp in my project easily... great video :-) ❤️❤️

preyumkumar
Автор

hey bro, it can't connect to the database

ocwmmimaura
Автор

Pls how do i make it function for "request another otp if you didn't recieve any"? Just incase a staff didnt recieve the otp at first.

larryaj
Автор

I am getting error in email_verification 27th line required error

nalinakshicr
Автор

Hello, Adnan!

I have some question for this tutorials.
What is the password for login after register, the random password from database? or password that I used it from registered? bcs I cant use any password for login, so I stuck with "Password is not correct."

Thanks, Adnan!

raudhiatulridwan
Автор

Thanks Adnan, this helped me in a project.

oyewalephilip
Автор

I have already done the app password form Google account, and now I got this error
Fatal error: uncaught_mysql_execution: Not connection could be made because the Machine refused it


The error on line 67 where the local host = 8889,

ahmedal-akhali
Автор

Hi Adam, my checking password function on the sign-in page is not functioning. It just shows "wrong password" even i entered the correct one. but the username can check whether is right or wrong. Do you know how to solved it?

yuhantho
Автор

Great video! I tried but it catches error. It says Uncaught SMTP Error: Could not connect to SMTP host. Failed to connect to server in ... Can you help? Thank you in advance

fiqq_riz_
Автор

how do i fixed this??

Message could not be sent. Mailer Error: SMTP Error: Could not authenticate.

davecarljay-arerodolfo
Автор

Can u help me? It shows “class not found in my directory

mae
Автор

Message could not be sent. Mailer Error: SMTP Error: Could not authenticate
and I enabled less secure apps for gmail.. it's not working..

fulhamfulham
Автор

Hi Adnan, Thanks for the tutorial..
I'm getting this error:
Message could not be sent. Mailer Error: SMTP Error: Could not connect to SMTP host.

yashpandey
Автор

hello sir i have a error saying Attempt to read property "email_verified_at" on null

qoutetastic
Автор

can this still work if i don't have a live website? i just have php login page and a databse

User-iskf
Автор

It is 100 % working. This video was really very helpful for me

shraddhabansode
Автор

why i encounter password is not correct? how will i fix this one?

AngeloCastro-xgci