PHP Password Reset by Email

preview_player
Показать описание
Learn how to create secure password reset by email using PHP, MySQL and best practices.

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

Please consider supporting my channel:

Code shown in the video:

Relevant documentation:

Videos referenced:

00:00 Introduction
00:24 How it works
02:09 Starting point
02:17 Forgot password
04:08 Database changes
05:03 Send password reset
08:47 PHPMailer
13:25 Send reset email
14:17 Process link in email
16:42 Password reset form
17:49 Reset password
20:40 Summary

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

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

and part 3 is here: PHP Account Activation by Email:

dave-hollingworth
Автор

dave is the best of all times in php. His api course is AMAZING. the explanations are beyound the language, you learn the concepts and how implement it in practice

lucascampos
Автор

Living treasure Thank you for the great work

aloalo-ssvl
Автор

Working on my final project and now I added this option to my project, thank you very much

WasifAnton
Автор

Thanks, really clear coverage of a fairly complex process. 👍

batchrocketproject
Автор

Thank you very much Sr. ¡I apreciate all your knowledge!

miguelangelperezsantiago
Автор

your vid has really helped me a lot in making a good proj. and also thank you for keeping your code free to use

AbhishekBade
Автор

Thank you Dave, I've had frustrations looking for a way out with doing secured password recovery/ reset

samnako
Автор

Nice explanation, understood instantly, thanks. Suscribed.

SargonsEye
Автор

Shear PHP Coding Wizardry.
Deep appreciation, sir.

Wishing that you would make a video on the things to do to make a website scalable.

NedumEze
Автор

On the mail.php page, specify in the SMTP settings configuration, what is meant by email and password? Is it the one that belongs to the personal gmail, and what is the account added to the host? Please respond as soon as possible.

venomtv
Автор

Thank you so much sire always love Your coding and the simple syntax you use to teach special greetings ❤❤❤❤❤

hongpair
Автор

Can you add a video for creating admin roles
Like adding super admin and admin please

sarabibrahim
Автор

Thanks for your knowledge and your code I used them in signups and they worked for me perfect. And when are you planning to record a tutorial on how to create avater image

frankkaundamukhuni
Автор

please in reset-password. php i don't understand if we must put $token_hash in the place of ? in the query $sql="select * from user where reset_token_hash=?"; because i think ? will replace $_get['token']
and in the table user we store reset token hash and not the token
help please
just i want a clarification
thx in advance

slamanaim
Автор

really great content, thank you for that. It may be a stupid question but wouldn't it be easier to send the user to the sign-up page and skip the check if the email is already taken? (or just delete the user and let him sign up again)

martingronek
Автор

could you please make a video on search algo like in a social media website where we can find people to connect with?

AbhishekBade
Автор

Great content David, part 3 with 2FA with option to enable or disable it?

ackinito
Автор

What other related functionality would you like to see? Coming soon - account activation by email!

dave-hollingworth
Автор

Great as always 👍
I know videos are made so that they can be easy to understand but, Maybe It would be better and more practical, instead of using files and require them like: $var = we can just create functions in one file and use them everywhere we need. 😊

ademineshat