Full course available at https://www.codereviewvideos.com/cour...
In this video we are going to look at the first of two possible ways in which you can stop a User from being able to visit the /login route / login form page when they have already logged in.
There are likely many more ways of achieving this goal.
In this video we will cover how to override a FOSUserBundle controller to achieve this goal. In the next video we will do the same, but use Symfony events instead.
This way illustrates the point in an easier to understand manner than looking at events, if you have never done so. Once you see the outcome of this video, the next will show you a better way (in my opinion) of doing this.
This whole process is really a usability enhancement rather than a necessity. If you feel your Users may experience confusion if they accidentally find their way to the login form whilst already logged in, then consider doing this. Likewise, if your Users are technically savvy, they may try this to see what happens out of sheer curiosity.
https://codereviewvideos.com/course/g...
Watch video FOSUserBundle [12/15] - UX Improvements - Part 1 - Redirect /login when Logged In online without registration, duration hours minute second in high quality. This video was added by user Code Review Videos 21 March 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 152 once and liked it 1 people.