On Wed, 9 Feb 2011 20:26:29 -0800 (PST), Klaas Naaijkens
<[email protected]> wrote:
> Hi, I am struggling with the security system in symfony2 for about a
> day now.
> 
> I have this in my config_dev.yml (running with the latest version of
> symfony2 github)
> ---------
> security.config:
>    providers:
>        main:
>            users:
>                foo: { password: foo }
> 
>    firewalls:
>        main:
>            http-basic: true
> 
>    access_control:
>        - { path: /.*, role: ROLE_USER }
> 
>    encoders:
>        HelloBundle/Entity/User: plaintext
> ----------
> Then I get this error.
> 
> No encoder has been configured for account
> "Symfony\Component\Security\Core\User\User".
> 

The exception message just tells you the issue: you have to define the
encoder for the User class used by the InMemoryProvider, which is not
"HelloBundle/Entity/User" but "Symfony\Component\Security\Core\User\User"
as stated in the exception message.
The doc about encoders is here:
http://docs.symfony-reloaded.org/master/guides/security/users.html#configuring-encoders.

Regards

-- 
Christophe | Stof

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to