Login & Register System in Symfony | Symfony Authentication | Symfony 6 for Beginners

  Рет қаралды 29,213

Code With Dary

Code With Dary

Күн бұрын

Пікірлер: 38
@kingtyphoon
@kingtyphoon Жыл бұрын
Hi Dary, you're honestly a legend because you make good explanation videos but what I also like very much is that you show what for example each command actually does in depth and I and possibly other people appreciate this very much!
@codewithdary
@codewithdary Жыл бұрын
Thank you so much :).
@AdrusMcpaketazo
@AdrusMcpaketazo 5 ай бұрын
Man, this is incredible. Thank you so much for this tutorial, it helped me a lot! I'm coming from Laravel and slowly detoxing from Eloquent.
@codewithdary
@codewithdary 5 ай бұрын
Thank you so much buddy 🙏🏽🫶
@najiali651
@najiali651 Жыл бұрын
You can’t imagine how you helped me with this project, you saved my life❤, I was looking for a solution to my mistake , thank you too much, I found at the last of video, how to hide pages ❤️❤️ I have question: can make a video about how to make admin page and allows admin to add , edit and delete?
@codewithdary
@codewithdary Жыл бұрын
Thank you Najiali, its my pleasure. I won't be creating Symfony tutorials anytime soon but that's definitely a topic I will do once I start making it again :)
@d_sportello
@d_sportello 2 жыл бұрын
you made it easy for understanding, thanks!
@codewithdary
@codewithdary 2 жыл бұрын
Thank you :)
@najiali651
@najiali651 Жыл бұрын
You can’t imagine how you helped me with this project, I was looking for a solution to my mistake , thank you too much, I found at the last of video, how to hide pages ❤️❤️ I have question: can make a video about how to make admin page and allows admin to add , edit and delete?
@codewithdary
@codewithdary Жыл бұрын
Thank you so much. I'm not going to make any Symfony content anytime soon.
@yurafedonyuk
@yurafedonyuk Жыл бұрын
man, u are a lifesaver! Huge props from Ukrainian web devs👍👍
@codewithdary
@codewithdary Жыл бұрын
Thank you for your positivity Yura, much love from me to all Ukrainians watching
@mxdscientist
@mxdscientist 2 жыл бұрын
This was a very well explained tutorial, well done.
@codewithdary
@codewithdary 2 жыл бұрын
Glad it was helpful Marouane.
@domjanzsoo
@domjanzsoo 26 күн бұрын
getting "No Symfony console detected to run "symfony console"" error when running symfony console command. Do I need to install it?
@uraljonjurayev1814
@uraljonjurayev1814 2 жыл бұрын
Thank you very well.⬆️✔️
@codewithdary
@codewithdary 2 жыл бұрын
Thank you too Uraljon!
@shashithasandunil9464
@shashithasandunil9464 2 жыл бұрын
Thank you , sir
@codewithdary
@codewithdary 2 жыл бұрын
No worries!
@renatatworzydlo2561
@renatatworzydlo2561 2 жыл бұрын
Well done. Clear and understandable. I wanted to ask you: how to configure the roles in the roles column in database? Example: a user can be either operator, super operator, customer or super customer (as with fos bundle in previous versions). Thanks in advance!
@codewithdary
@codewithdary 2 жыл бұрын
Hi Renata. I just tried to explain it in my own words and I wasn't satisfied with it, so I found a good explanation on Symfony's official website: Instead of giving many roles to each user, you can define role inheritance rules by creating a role hierarchy: # config/packages/security.yaml security: # ... role_hierarchy: ROLE_ADMIN: ROLE_USER ROLE_SUPER_ADMIN: [ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH] Users with the ROLE_ADMIN role will also have the ROLE_USER role. Users with ROLE_SUPER_ADMIN, will automatically have ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH and ROLE_USER (inherited from ROLE_ADMIN). Usage // BAD - $user->getRoles() will not know about the role hierarchy $hasAccess = in_array('ROLE_ADMIN', $user->getRoles()); // GOOD - use of the normal security methods $hasAccess = $this->isGranted('ROLE_ADMIN'); $this->denyAccessUnlessGranted('ROLE_ADMIN');
@endofdays4585
@endofdays4585 8 ай бұрын
Hey Dary, i having a doubt actually. Its there any possibility to create an LoginFormType.php like the register one? Im actually trying this but the authentication its not working anymore with.
@skygrace8459
@skygrace8459 Жыл бұрын
thanks alot for this tut, i juste have a question; how should i proceed so users could login either the username or the email simultaneously ?? need help. thanks one more.
@najimelguennouni873
@najimelguennouni873 2 жыл бұрын
thanks dary
@codewithdary
@codewithdary 2 жыл бұрын
You are welcome Najim :)
@draganjelic3549
@draganjelic3549 Жыл бұрын
What I'm supposed to do if I want to improve this code in order to work with front-end part of API project?
@codewithdary
@codewithdary Жыл бұрын
I don't really get it. Why do you need a Symfony project to work with the front-end of an API?
@user-mj9wm6dl1c
@user-mj9wm6dl1c Жыл бұрын
Tell me, pls: why all the properties of the User entity are generated as nullable ( private ?string $name = null)? And you don't... (I'm using Symfony 6.1)
@sebkl6098
@sebkl6098 2 жыл бұрын
Hey Dary, did u test the messages if the login failed? My error variable in the twig template is always null
@tomasreinert5511
@tomasreinert5511 2 жыл бұрын
Thank you Dary.
@codewithdary
@codewithdary 2 жыл бұрын
It’s Dary bro!! 🤣🤣🤣
@tomasreinert5511
@tomasreinert5511 2 жыл бұрын
@@codewithdary sorry 😂
@dominus6224
@dominus6224 Жыл бұрын
3:05 dary, you really have to start living on de randje. Real men live on de randje of leven by not encrypting or hashing
@codewithdary
@codewithdary Жыл бұрын
Hahahaha 😂😜👌
@gravityarm9240
@gravityarm9240 Жыл бұрын
Whats better laravel or symfony?
@codewithdary
@codewithdary Жыл бұрын
Depends..
@user-vb2zx6vj4c
@user-vb2zx6vj4c Жыл бұрын
I'm actually doing the same things you do in the video (i already have a User entity with fixtures that i have previously created) but when i try to login, it throws me an error "invalid credentials" even if the email and the password are the same in the user tables. Someone knows why? Thanks
@todorinchovski8496
@todorinchovski8496 6 ай бұрын
A bit late with the reply, but with a bit of debugging I found out that the authenticate method in LoginFormAuthenticator.php tries to get $email = $request->request->get('email', '') $request->request->get('password', '') but the info that comes in the POST is _username and _password, so if you change the variables, then it works.
Modus males sekolah
00:14
fitrop
Рет қаралды 15 МЛН
Apple peeling hack
00:37
_vector_
Рет қаралды 122 МЛН
Dad gives best memory keeper
01:00
Justin Flom
Рет қаралды 21 МЛН
Sigma Girl Pizza #funny #memes #comedy
00:14
CRAZY GREAPA
Рет қаралды 2,5 МЛН
Cursor Is Beating VS Code (...by forking it)
18:00
Theo - t3․gg
Рет қаралды 64 М.
Symfony 5 Test Driven Development (TDD) Tutorial
1:25:00
Gary Clarke
Рет қаралды 45 М.
Building a Basic Symfony 6 CRUD App from Scratch
1:15:46
TheYellowHash
Рет қаралды 10 М.
Modus males sekolah
00:14
fitrop
Рет қаралды 15 МЛН