Symfony tutorial: Registration and Login system with email verification and password reset

Опубликовано: 04 Октябрь 2024
на канале: codeForMe
7,281
96

We are going to create a login page that has a link to reset password and a registration page that require a valid email and email confirmation. we will also create a simple page that can be only accessed by logged in users.

Chapters:

0:00 Task introduction and requirements
0:15 Install a Symfony application
0:48 Install required dependencies with composer
1:20 Open PhpStrom from Terminal
1:30 Add database credentials in the .env file of a Symfony application
1:40 Add email crendentials in the .env file of a Symfony application
1:57 Create A application User with maker bundle in a Symfony application
2:07 Create A Login form and a logout link
2:21 Create A controller with the maker command in a Symfony application
2:38 Secure A controller in a Symfony application
3:33 Redirecting logged in user to a different route in a controller
3:45 Create a registration form in a Symfony application
4:25 Redirecting registered users from the registration page to the protected controller
4:58 Adding a link to a route in a twig template
5:41 Only users that verify their email can see the protected template
7:12 Creating all database tables using the maker command
8:39 Add a password reset in a Symfony application


-------------------------------------------------------------------------

tools:
--------
composer: https://getcomposer.org/download/
mailtrap: https://mailtrap.io/signin
phpstorm: https://www.jetbrains.com/phpstorm/
windows terminal: https://github.com/microsoft/terminal
symfony 6: https://symfony.com/
mysql: https://dev.mysql.com/downloads/insta...
chrome: https://www.google.com/chrome/
-------------------------------------------------------------------------

commands:
------------------
composer create-project symfony/skeleton symfony_login

cd symfony_login

composer require twig orm security mailer form validator maker symfonycasts/reset-password-bundle symfonycasts/verify-email-bundle

php bin/console make:user

php bin/console make:auth

php bin/console make:registration-form

php bin/console make:reset-password

php bin/console doctrine:schema:create

symfony serve
-------------------------------------------------------------------------

Github Repository:
-----------------------------

https://github.com/Moh-Snoussi/Symfon...