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

Published: 17 October 2023
on channel: Dave Hollingworth
16,272
421

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:
☕ https://ko-fi.com/davehollingworth

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

Part 1: Signup and Login with PHP and MySQL:
‣    • Signup and Login with PHP and MySQL  

Part 2: PHP Password Reset by Email:
‣    • PHP Password Reset by Email  

Code shown in the video:
‣ https://github.com/daveh/php-account-...

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


Watch video PHP Account Activation by Email: Require the User to Confirm their Email Before They Can Log In online without registration, duration hours minute second in high quality. This video was added by user Dave Hollingworth 17 October 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 16,272 once and liked it 421 people.