Category: authentication

Symfony – I am not redirected to login when accessing user route

I have these routes: … * @Route(“/”, name=”home”) */ public function homeAction(Request $request) … … * @Route(“/{slug}”, name=”request_list”) */ public function listAction(Request $request) … access_control: – { path: ^/, role: IS_AUTHENTICATED_ANONYMOUSLY } – { path: ^/login, role: IS_AUTHENTICATED_ANONYMOUSLY } -…

How to ensure that a request comes from my webextension and login system

I develop an url shortener service: https://urlr.me and a webextension for it: https://addons.mozilla.org/fr/firefox/addon/urlr/. The source code of the webextension is open source and available on github. I have two main questions : 1 / Today, to know if the request…

isPasswordValid() must be of the type string, null given (Symfony)

I’m building a login page for my website. When I try to login, I get this error Argument 2 passed to SymfonyComponentSecurityCoreEncoderMigratingPasswordEncoder::isPasswordValid() must be of the type string, null given, called in /var/www/html/my_quizz/vendor/symfony/security-core/Authentication/Provider/DaoAuthenticationProvider.php on line 64 My login also works…