security - Entity Provider: No encoder has been configured for account -


i'm trying setup login system using doctrine entity provider error:

no encoder has been configured account "prefix\mainbundle\entity\admin" 

here setup:

security.yml

security:     encoders:         prefix\mainbundle\entity\admin:             algorithm:        sha1             encode_as_base64: false             iterations:       1      role_hierarchy:         role_admin:       role_user         role_super_admin: [ role_user, role_admin, role_allowed_to_switch ]      providers:         administrators:             entity: { class: prefixmainbundle:admin, property: username }      firewalls:         administrators:             pattern:    ^/admin/             anonymous:  ~             provider:   administrators             form_login:                 login_path:  /admin/login                 check_path:  /admin/login_check      access_control:         - { path: ^/admin/login, roles: is_authenticated_anonymously }         - { path: ^/admin, roles: role_admin } 

i have entity created , implements userinterface can't make work, it'd great if shed light on this.

move provider under form login:

        form_login:             login_path:  /admin/login             check_path:  /admin/login_check             provider:     administrators 

i assuming error when trying login using form.

and while not directly related, should replace login paths named routes.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -