Skip to content
Advertisement

Symfony3 Custom User Provider doesn’t work

I tried to implement everything per Symfony documentation but authentication seems to not work at all. Take a look at what I exactly did:

security.yml

JavaScript

StUser.php entity

JavaScript

UserRepository.php repository:

JavaScript

AccountController.php

JavaScript

login.html.twig view

JavaScript

And nothing happens, $helper and $error are empty / null, nothing I can find in logs. What I missed. Thanks in advance.

Advertisement

Answer

I tried that but without success. It looks like any custom code is never called.

I’ve updated security.yml (when I set anonymous: ~, then it allows users to open for exampple account page without authorization):

JavaScript

and also I’ve updated User entity:

StUser.orm.yml entity:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement