Hi there

Instead of:

  encoder:
    Symfony\Component\Security\User\User: plaintext

try:

  encoder:
    class: Symfony\Component\Security\User\User
    algorithm: plaintext

Douglas




On Jan 13, 9:14 am, Duffman <[email protected]> wrote:
> After login i get the error-message:
>
> Uncaught exception 'RuntimeException' with message 'Each encoder needs
> an account class.....
>
> My config:
>
> security.config:
>   encoder:
>     Symfony\Component\Security\User\User: plaintext
>   providers:
>     main:
>       users:
>         florian: { password: test, roles: ROLE_USER }
>   firewalls:
>     login: { pattern: /login, security: true, anonymous: true }
>     login_check: { pattern: /login_check, security: true, anonymous:
> true, form_login: true }
>     profiler: { pattern: /_profiler.*, security: true, anonymous:
> true }
>     main:
>       pattern:    /backend
>       form_login: { check_path: /login_check }
>       logout:     { path: /logout, target: /login }
>       anonymous:  true
>   access_control:
>     - { path: /login, role: IS_AUTHENTICATED_ANONYMOUSLY }
>     - { path: /login_check, role: IS_AUTHENTICATED_ANONYMOUSLY }
>     - { path: .*, role: [ ROLE_USER, IS_AUTHENTICATED_ANONYMOUSLY ] }
>
> any ideas?

-- 
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