Hi, no sorry it doesn't work with this config.
I found the first encoder-config in the symfony2-docu. FS -------- Original-Nachricht -------- > Datum: Thu, 13 Jan 2011 09:45:13 -0800 (PST) > Von: Douglas <dgreenshie...@gmail.com> > An: symfony users <symfony-users@googlegroups.com> > Betreff: [symfony-users] Re: Encoder error after login > 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 <florian.s...@gmx.de> 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 symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en