PHP Account Activation by Email: Require the User to Confirm their Email Before They Can Log In

preview_player
Показать описание
Learn how to develop functionality in PHP that requires a user to confirm their email address before they can login.

Once they sign up, they'll have to click on a link in an email to activate their account. If they don't do that, they can't login.

Please consider supporting my channel:

This is part 3 of Signup and Login with PHP and MySQL:

Part 1: Signup and Login with PHP and MySQL:

Part 2: PHP Password Reset by Email:

Code shown in the video:

00:00 Introduction
00:20 Starting Point
01:16 How it will work
01:59 Database changes
02:40 Initial Code
02:58 Generate Activation Token
04:21 Change Signup Success
04:45 Send Activation Email
06:35 Activate the Account
08:17 Prevent Login Until Activated
09:46 Summary

#PHP #MySQL #signup #login #activation
Рекомендации по теме
Комментарии
Автор

That's a nice video on confirming with mail to register the account definitly.

GerritforBazeja
Автор

Hi Dave, I've worked through your PHP courses which eventually lead to me learning Laravel and completing my first project using this framework. I found the framework quite easy to grasp and had an idea of what goes on under the hood. This is all thanks to your teaching. I would recommend to anyone that they first learn PHP / MVC, then move onto a framework when you understand the concepts. These videos are a nice refresher of the topics I first learnt from you. Thanks!

ahooton
Автор

I have just received a notification of the video...❤. Just watching it now...man you are a great teacher. You are straight to the point no blah blah 😅😅

mlindatech
Автор

Hey Dave, thanks for your videos, they are the perfect starting point for me learning PHP. I saw on your profile you are open to ideas for new videos. I have looked for a video about how to learn (the right way) to built some kind of time booking logic. For example managing appointments or booking meeting rooms, etc. But haven't been able to find one, which is near the quality of your content. It could be a very generic solution just to showcase how the proper approach to such a project would be. Basically just CRUD for time bookings, doesn't even have to be shown on a calender in the front-end or something.

elvis_v
Автор

This is part 3. Part 1 is here: Signup and Login with PHP and MySQL:

and part 2 is here: PHP Password Reset by Email:

dave-hollingworth
Автор

Mate, may I suggest a tutorial on creating/displaying more user-friendly URLs in PHP? These PHP tutorials of yours have been of a huge assistance for me and I'm at a point at which I should really get the user-friendly URLs done to hide the IDs and PHP files from the URL and I'd love to see such tutorial from you as your explanations are beyond fantastic. And thank you for this tutorial as well, this too is something I needed and was about to start looking things up online on how to get it done, but now I won't need to since everything I need is right here.

garminizator
Автор

Be aware that some e-mail providers actually try to access links sent in mails in order to scan these for malware. This might introduce a security issue here. Having a user actually pressing a button to confirm the token would be better. GET shouldn't modify users data 😉

RoterFruchtZwerg
Автор

This is a great video. Keep doing this man, will support you

collenzaligway
Автор

Excellent 👍 Teacher. You have made the php so much easy ."

HashimJAVEDBUTT-ipjm
Автор

Merci beaucoup pour vos videos constructives. S'il vous plait pour une videos sur comment ouvrir, telecharger et imprimer les fichier pdf uploade

MoupefoAI
Автор

I love your lessons and videos! Thank you for putting the time and effort in creating them! One question: any chance you could provide some info (release date) of “php MVC Framework from scratch” course adapted for php8?

sarmadkinany
Автор

This is a helpful tutorial, i can't install phpmailer with composer, i'll look for the files to include and i will give it a try

boulaidabdessamad
Автор

I took the Codeigniter 4 course and it was nothing short of amazing! I like your teaching style Dave.

One thing though, I'm wondering if the PHP/MVC course are ok to be taken in 2023?
Are they up-to-date?

terdoomzer
Автор

I'm new to PHP and would appreciate your help in understanding the advantages and disadvantages of using plain PHP with MySQL versus a framework like Laravel. I often feel like I don't fully grasp Laravel and sometimes struggle to keep my code under control. Any guidance you can provide would be greatly appreciated. Thank you!

mtnguyen
Автор

Pretty awesome! Please, could you make a video about PHPslim framework? Thank you

mounir
Автор

in the next video, I hope it will be a tutorial of how to resend messages in case there will be an error sending message from the admin mail

jamestrey
Автор

please create a tutorial on how to store qr-code in the database based on your last video about creating qr-code
please sir.

NeilMohammad
Автор

Great video. Question, in my local server the registration sent me the link in my gmail but when I put it online, no links being sent. can you help me with this issue? its for my educational purposes only. Thanks

akirosiblos
Автор

Do you have a full php course ? and oop in php also ?

alalyrealestate
Автор

I would like to create a member profile page and add some basic information about the members account. Do you have any resources?

forexitydotorg