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

  Рет қаралды 6,378

codeForMe

codeForMe

Күн бұрын

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: getcomposer.org/download/
mailtrap: mailtrap.io/signin
phpstorm: www.jetbrains.com/phpstorm/
windows terminal: github.com/microsoft/terminal
symfony 6: symfony.com/
mysql: dev.mysql.com/downloads/insta...
chrome: 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:
-----------------------------
github.com/Moh-Snoussi/Symfon...

Пікірлер: 15
@zenobikraweznick
@zenobikraweznick Жыл бұрын
Just appreciate the fact that he's coding while flying a freaking plane.
@borisloncaric434
@borisloncaric434 10 ай бұрын
Very nice tutorial! Thank you. Please make more Symfony tutorials
@code-for-me
@code-for-me 10 ай бұрын
Thanks, will do!
@Autos-kc6qe
@Autos-kc6qe Жыл бұрын
Good Job
@code-for-me
@code-for-me Жыл бұрын
Thank you!
@code-for-me
@code-for-me 8 ай бұрын
If the email sending isn't functioning as expected, it could be due to the presence of Symfony Messenger, which can create an email queue to prevent the response from waiting until the email is sent. You have two options to resolve this issue: Remove or comment out the following line in your config/packages/messenger.yaml file: Symfony\Component\Mailer\Messenger\SendEmailMessage: async Alternatively, open terminal and start the Messenger worker by running the following command: symfony console messenger:consume async -vv
@hyperannatv3387
@hyperannatv3387 9 ай бұрын
sir can u create a tutorial on how to install symfony? and create simple app?
@nidhalcherif8402
@nidhalcherif8402 Жыл бұрын
I have installed via composer the module "symfony/mailer" and also symfonycasts/verify-email-bundle, but this is not working and i can see any email on my inboxes on mailtrap. can you help me please? knowing that I have correctly configured the DSN mailer of *.env as indicated
@code-for-me
@code-for-me Жыл бұрын
It can be that the email is stuck on the messanger queue system. if you have config/packages/messenger.yaml try commenting the: Symfony\Component\Mailer\Messenger\SendEmailMessage: async
@pacmaybz
@pacmaybz 10 ай бұрын
same problem here. Did you solve it?
@user-jf9ro8vc6t
@user-jf9ro8vc6t 9 ай бұрын
@@pacmaybz Although my file is Symfony\Component\Mailer\Messenger\SendEmailMessage: async, it doesn't work, instead I run php bin/console messenger:consume async.
@code-for-me
@code-for-me 8 ай бұрын
did you try the above "commenting the: Symfony\Component\Mailer\Messenger\SendEmailMessage: async" ?
@lolikaaa
@lolikaaa 8 ай бұрын
@@code-for-me Edit: problem solved - you need to change one line in reset_password.yaml - there is instruction on that file :) I have the same problem and I tried comment this line in my messanger.yaml but still not sending any emails :( Another thing - I dont have any data in my reset_password_request table. But it sends the email after registration but not when we want to reset the password.
@futuresuperinfinity3526
@futuresuperinfinity3526 Жыл бұрын
i want a symphony tutor personal tutor who can teach me only
Symfony tutorial: CREATING A CRUD APPLICATION
2:38
codeForMe
Рет қаралды 3,7 М.
Django vs Symfony: Shock Unexpected
5:20
codeForMe
Рет қаралды 1,1 М.
WHY DOES SHE HAVE A REWARD? #youtubecreatorawards
00:41
Levsob
Рет қаралды 43 МЛН
1🥺🎉 #thankyou
00:29
はじめしゃちょー(hajime)
Рет қаралды 80 МЛН
When Steve And His Dog Don'T Give Away To Each Other 😂️
00:21
BigSchool
Рет қаралды 12 МЛН
Creating a Login with Symfony 5 - User and Auth
8:41
Symbolic Link
Рет қаралды 18 М.
Laravel OTP Login - Laravel 9 OTP Login
37:10
TechTool India
Рет қаралды 19 М.
Faire une page de login avec Symfony ?
5:57
Certif Academy
Рет қаралды 3,8 М.
Symfony 5: Login and Registration
10:17
OLFA
Рет қаралды 22 М.
Learn Symfony for 2024, 6 reasons why
2:28
codeForMe
Рет қаралды 15 М.
Symfony PHP Framework Tutorial - Full Course
3:28:05
freeCodeCamp.org
Рет қаралды 387 М.