Reset forgot password and delete account | PHP and MySQL secure login system | Part 3

preview_player
Показать описание
Hi guys. In this tutorial we are going to create a secure login system with php and mysql.
We are gonna have a register page, a login page, a forgot password page, and an user account page where the user is going to be redirected when he logs in successfully.

Every input field will have a proper and secure validation, so you can easy implement the code in a live website.

This is the third and last video of a three series and we are going to see how to reset the user's password and send him an email with the new password.

Also we are going to code the delete account action.

To learn about prepared statements you can watch the video:
or read the article:

You can buy me a coffee and get the whole source code in a zip file.
The code is updated and uses the PHPMailer library to send emails.

If you don't know how to configure PHPMailer watch this video:
or
Read the article on my website.
Рекомендации по теме
Комментарии
Автор

This was such a good tutorial, thanks! You should consider adding email validation (for new registrations) and a function for the user to change their password. Also, your password reset overwrites the user's current password, which a malicious user could abuse to frustrate the account owner. I think your tutorial gave all the required info for me to add those features myself though. Much appreciated!

bananas
Автор

Can you add a link for the user, and when he logs in, a page appears: Enter the new password and confirm the password. He is the one who changes the password.

bnyamine
Автор

Do a how to change password once logged in?

LinuxZombie
Автор

How do I create such a system with php oop

bnyamine
Автор

The new password is not sent through email.

itgoldmart
visit shbcf.ru